zwopple / PocketSocket

Objective-C websocket library for building things that work in realtime on iOS and OS X.
Other
414 stars 129 forks source link

Server improvements #16

Closed zocario closed 8 years ago

zocario commented 10 years ago

Hello, first thanks for your library! We're using it on a project where we have a client and a server side, both using your library.

Our first problem was that we need to pass the protocol we're using to the PSWebSocketServer, as the client displays a list of devices (that are in fact WebSocket servers) that use this protocol, and don't display the others. Also we need to have the possibility to close a handshake with specific http status codes so the client know why it has been rejected.

So here are the changes we made:

Tell me if those changes seems good to you!

mogui commented 9 years ago

Hi any chance to get this merged? I would like to use your library but I need the support for the websocket subprotocol too for both client and server