Hi,
I'm sure I'm just missing the point somewhere, as setting up a websocket Client using our own socket code (unfortunately I am unable to use ASIO in my project) was so easy, but I am struggling to to handle the initial handshake received from the client in my server implementation.
So far I have created my endpoint based on typedef websocketpp::server<websocketpp::config::core>, in my socket code received a TCP connection from the client and created a new connection calling get_connection(). I have then setup message, http and fail handler. I was then assuming I could pass call read_some() on the websocket++ connection with the data my client just sent me, but the state of m_reading is false and also my m_state is connecting, not open.
I'm assuming I am missing the vital part of actually informing the websocket++ connection that we have a TCP connection and are ready to run?
If anyone has any suggestions as to what I'm missing, I'd be very grateful!
Thanks,
Paul
--
You received this message because you are subscribed to the Google Groups "WebSocket++" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
websocketpp...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/websocketpp/f93cd8b6-5ac7-4bc4-84da-612b1e1b1c99n%40googlegroups.com.