from noisytweets import keywordsmanager
from noisytweets import socketio

@socketio.on('ping')
def handle_ping(data):
    keywordsmanager.ping_keyword(data['keyword'])
    join_room(data['keyword'])

from flask.ext.socketio import join_room

from noisytweets import keywordsmanager
from noisytweets import socketio

@socketio.on('ping')
def handle_ping(data):
    keywordsmanager.ping_keyword(data['keyword'])
    join_room(data['keyword'])

Fix join_room import error.