Example #1
0
def handle_connect(nick):
	new_nick = webchat_lib.trim_msg(nick)	
	socketio.emit('connect', new_nick)
	return
Example #2
0
def handle_connect(nick):
    new_nick = webchat_lib.trim_msg(nick)
    socketio.emit('connect', new_nick)
    return
Example #3
0
def handle_message(msg):
	global redis_conn
	new_msg = webchat_lib.trim_msg(msg)	
	redis_conn.publish('chat', new_msg)
	print new_msg	
	return
Example #4
0
def handle_message(msg):
    global redis_conn
    new_msg = webchat_lib.trim_msg(msg)
    redis_conn.publish('chat', new_msg)
    print new_msg
    return