navigation

ISocketHub

Namespace: Saturn
Parent: Channels

Interface representing server side Socket Hub, giving you ability to brodcast messages (either to particular socket or to all sockets). You can get instance of it with ctx.GetService<Saturn.Channels.ISocketHub>() from any place that has access to HttpContext instance (controller actions, channel actions, normal HttpHandler)


Name Description
Instance Members
x.SendMessageToClient arg1 arg2 arg3 arg4
Signature: ChannelPath -> SocketId -> Topic -> 'a -> Task

x.SendMessageToClients arg1 arg2 arg3
Signature: ChannelPath -> Topic -> 'a -> Task