MBWebSocketServer
MBWebSocketServer copied to clipboard
An objc draft 10 websocket implementation
A separate branch for this fix.
Depending on how the server is used, it sometimes only needs to deal with specific connections. For example, disconnect a specific connection or send data to a specific connection(s). In...
Please support Ping/Pong at the low level. This will really help for the server to know if clients are still connected to the server. It's very easy to implement, just...
The unmasked NSData that are being allocated in socket:didReadData:withTag: (tag = 6) isn't cut to it's correct size before sending it to the delegate. Therefore the delegate method, webSocketServer:didReceiveData:fromConnection:, gets...
Needs a close method to stop the server gracefully. If this is not done and the object is just set to nil then the clients continue to stay connected. I...
Sometimes the header key gets corrupted at the server (somewhere) before hashing and it is sent back as the wrong key to the client. See the following log ``` MBWebSocketServer...