These are chat archives for SmingHub/Sming

14th
Jun 2017
Alexander V. Ribchansky
@avr39-ripe
Jun 14 2017 14:42
@slaff Please help me with refactored HTTP & friends.. Can't figure out how to send message to all connected websockets OUTSIDE any ws-related delegate? If my app wants just broadcast some message by itself, not as reaction to some ws message? Thanks!
slaff
@slaff
Jun 14 2017 15:23
@avr39-ripe There is the WebsocketConnection::broadcast method that you can use https://github.com/SmingHub/Sming/blob/develop/Sming/SmingCore/Network/Http/Websocket/WebSocketConnection.cpp#L164
If there is a need for it then we can make that method static (or add static version of it) and then broadcast message can be sent from anywhere in your code.
Alexander V. Ribchansky
@avr39-ripe
Jun 14 2017 15:40
@slaff please make static version of broadcast so we can use it from anywhere.. thanks!
slaff
@slaff
Jun 14 2017 16:24
@avr39-ripe Please, create a ticket and I will take care when I have a bit of time.