daltoniam / Starscream

Websockets in swift for iOS and OSX
Apache License 2.0
8.3k stars 1.2k forks source link

Channel support? #60

Closed shawnmitchell closed 9 years ago

shawnmitchell commented 9 years ago

WebSockets should support sending data on channels, no?

shawnmitchell commented 9 years ago

Ah, it seems I'm confusing WebSockets with Socket.io. Would be nice to have support for that.

acmacalister commented 9 years ago

I'm sure what you mean by "channels", but if I understand what you are asking correctly, the WebSockets RFC spec does not include anything about channels in the sense like Socket.io supported channels. That being said, it is doablel to build channels on top of the WebSocket protocol.

acmacalister commented 9 years ago

The goal of Starscream is just to provide a RFC 6455 complaint WebSocket library. You could use it to build a Socket.IO library or channel based system off. Here is a library that uses Starscream to create a Socket.IO library.

https://github.com/shuoli84/SocketIOCocoa

shawnmitchell commented 9 years ago

Thanks!