How I can get the respond from WebSocket server to client (using
SocketRocket)?
can you help me with my problem. Maybe somebody worked with SocketRocket
library and had same problem with it. I have simple echo WebSocket server.
When i connect to this server from client (XCode application ), at server
log I can see, that Client was connected. If Client send the message, then
at the server log i can see this message, too! In other words, the
functions [websocket open]; [websocket close]; [websocket send: message]
works great!
But on the client side I have problem. At client side I can't see events.
Any events is not work. It's a next functions: - (void)
webSocketDidOpen:(SRWebSocket *)webSocket - (void)webSocket:(SRWebSocket
*)webSocket didCloseWithCode:(NSInteger)code reason:(NSString *)reason
wasClean:(BOOL)wasClean - (void) webSocket:(SRWebSocket *)webSocket
didReceiveMessage:(id)message - (void) webSocket:(SRWebSocket *)webSocket
didFailWithError:(NSError *)error
No comments:
Post a Comment