Here are the examples of the python api ebu_tt_live.twisted.websocket.BroadcastClientFactory taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
3
View Complete Implementation : test_twisted_websocket.py
Copyright BSD 3-Clause "New" or "Revised" License
Author : ebu
Copyright BSD 3-Clause "New" or "Revised" License
Author : ebu
def _create_client(self, *args, **kwargs):
self.cfactory = BroadcastClientFactory(*args, **kwargs)
self.cproto = BroadcastClientProtocol()
self.cproto.factory = self.cfactory
self.cproto.failHandshake = MagicMock()
self.ctr = proto_helpers.StringTransportWithDisconnection()
self.cproto.transport = self.ctr
self.ctr.protocol = self.cproto