Hi
As I tried this great project into my own program, I made a local server to communicate with my other components easily. But recently I'm in trouble. Because I want to send message from server to client by websocket. And refer to the demo, I think I has integrated the server.
Client now can communicate with server by websocket now.
But the server can only send message by the callback functions.
(void)didReceiveMessage:(NSString *)msg;
And I tried to get the httpserver's all connections to run sendMessage for each.
But it seems I can only get a nil.
I want to get some more information that can help me to understand how to send message from server to clinet proactively after websocket has connected.
Hi As I tried this great project into my own program, I made a local server to communicate with my other components easily. But recently I'm in trouble. Because I want to send message from server to client by websocket. And refer to the demo, I think I has integrated the server. Client now can communicate with server by websocket now.
But the server can only send message by the callback functions.
And I tried to get the httpserver's all connections to run sendMessage for each. But it seems I can only get a nil.
I want to get some more information that can help me to understand how to send message from server to clinet proactively after websocket has connected.
Really thanks.