from openerp.service.server import sio @sio.on('connect', namespace='/') def join(sid, data): sio.emit('connect', data='Welcome to Chat!!!', room=sid) @sio.on('message', namespace='/') def chat(sid, message): print message sio.emit('message', data=message, skip_sid=sid)