Overview
Features
Download
Documentation
Community
Add-Ons & Services

do you have some tips on usage of WebSocket?

Please post support and help requests here.

do you have some tips on usage of WebSocket?

Postby tiplip » 10 Apr 2013, 11:56

hi, I want to implement chat server using websocket, and I guess one instance of websocket stands for one active user, but I don't know how to manage a group of websocket,say one user send text message to another, that is, one websocket communicats with another, here the server is working as a bridge.

If I want to have mutiple active clients, does that mean I have to create a goup of objects of
Code: Select all
WebSocketRequestHandler
referring to sample provided?

Another question is SocketImpl::receiveBytes called indirectly by WebSocket::receiveFrame will throw TimeoutException() (WSAETIMEDOUT)afterwards, so that WebSocketRequestHandler will be destroyed as a result.
How to avoid this kind of Timeout-caused self-destroy?

so, if you have any tips of experience on that, could you share some?

thanks.
tiplip
 
Posts: 18
Joined: 13 Jan 2011, 09:21

Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest