I do chat on https://ferretfarmer.net/2013/09/05/tutorial-real-time-chat-with-django-twisted-and-websockets-part-2/ to this manual, In the LineReceiver you need to get the session id from GET attribute ws: // localhost: 8000? / ws / session_id = abc123. How to implement it? Now the code is what I represented it:
class MyChat(basic.LineReceiver): def connectionMade(self): print "New client: {0}".format(self) print self.kwargs['session_id'] self.factory.clients.append(self)
MyChatnot available. Look in the source code whererequestis available (at the level of:WebSocketsResource.renderandlookupProtocolForFactory.lookupProtocol). Autobahn looks like a more current WebSocket implementation for Twisted. - jfs