Websocket maintain open

Please post support and help requests here.
Posts: 7
Joined: 29 Mar 2013, 23:42

Websocket maintain open

Postby andyb » 07 Apr 2013, 23:00

I am testing out version 1.51 from github and in particular the websockets. I have looked at the WebSocketTest.cpp and it all seems fairly simple but what I want to work out is how I can extend the test unit and use the same websocket created in the first test. If I create the websocket on the heap as a shared pointer and try to use it in a second test I have a null object as there has been an exception in the server code, WS_ERR_INCOMPLETE_FRAME and this closes the handler and I am presuming then internally the websocket is deleted on the client side.

Is this possible, and if so where am I going wrong?

Return to “Support”

Who is online

Users browsing this forum: No registered users and 2 guests