Updated README
This commit is contained in:
parent
81c6d513a5
commit
1a16e98d32
1 changed files with 4 additions and 4 deletions
|
|
@ -98,11 +98,11 @@ Define different namespaces on a single socket. ::
|
||||||
print 'on_aaa_response', args
|
print 'on_aaa_response', args
|
||||||
|
|
||||||
socketIO = SocketIO('localhost', 8000)
|
socketIO = SocketIO('localhost', 8000)
|
||||||
chatNamespace = socketIO.define(ChatNamespace, '/chat')
|
chat_namespace = socketIO.define(ChatNamespace, '/chat')
|
||||||
newsNamespace = socketIO.define(NewsNamespace, '/news')
|
news_namespace = socketIO.define(NewsNamespace, '/news')
|
||||||
|
|
||||||
chatNamespace.emit('aaa')
|
chat_namespace.emit('aaa')
|
||||||
newsNamespace.emit('aaa')
|
news_namespace.emit('aaa')
|
||||||
socketIO.wait(seconds=1)
|
socketIO.wait(seconds=1)
|
||||||
|
|
||||||
Open secure websockets (HTTPS / WSS) behind a proxy. ::
|
Open secure websockets (HTTPS / WSS) behind a proxy. ::
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue