tavendo/AutobahnPython — pull request #189 by claws (2014-02-03 12:20:04+00:00)
Title: Endpointforward extra subprotocol

The current implementation of the endpointforward does not allow other binary compatible subprotocols to flow down into the wrapped factory and wrapped protocol.
This pull request resolves this by allowing a binary compatible websocket subprotocol to be supplied to the endpointforward twistd plugin. An example use case for this is to provide a WebSocket proxy for a MQTT broker. Both the paho and mosquitto Javascript MQTT libraries send binary messages and use a subprotocol named `mqttv3.1` which is just a binary protocol.