Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I receive an message call back with multiple arguments? #13

Open
itsnotyoutoday opened this issue Mar 10, 2024 · 0 comments
Open

Comments

@itsnotyoutoday
Copy link

So in my app I have this..

public async Task SendTradeSocketNotification(string socketName, ulong account, string message)
{
    // Log the socketname and message
    logger.LogDebug($"Socket: {socketName} - {message}");
    // Send it out TS{SocketName} and TS{SocketName}+{AccountNumber}
    await hubContext.Clients.Group($"TS{socketName}").SendAsync("ReceiveTradeSocketNotification", socketName, message);
    await hubContext.Clients.Group($"TS{socketName}+{account}").SendAsync("ReceiveTradeSocketNotification", socketName, message);
}

I'm definteely adding the caller to the group... but I'm never seeing this on the receiving end.. Is there a special way to be able to receive messages back from the siganlr app that receive multiple arguments?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant