Open foresthan opened 6 years ago
@foresthan,
once you call upgrade()
upon clients request to open a websocket,
you should spawn a thread where the special stream handler lives on.
If this thread gets terminated, it is my understanding that the websocket is terminated
Is it just me or there isn't an easy way to sen a closing frame to the client from the server before terminating the thread?
I am wondering if there is a close method for rouille::websocket::Websocket struct to close a websocket from server side.