WASdev / lib.rtcomm.clientjs

Rtcomm client Javascript libraries (includes WebRTC support)
Apache License 2.0
15 stars 8 forks source link

Feature subprotocols #79

Closed swgraham closed 8 years ago

swgraham commented 8 years ago

Change the ways an Endpoint can implement subprotocols. This actually involved creating a base 'SessionEndpoint'. You can then add protocols to the endpoint to construct a new endpoint that supports a certain set of protocols.

Changed the 'RtcommEndpoint' to function in this manner (while maintaining backward compatibility). Check it out to see how to implement your own subprotocol, or just use the 'generic_message' protocol. to pass messages of any sort between two endpoints that are configured to support the 'generic_message' protocol (which is enabled by default in RtcommEndpoint)'