This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create a new socket instance between client and server, | |
* and start use it | |
* | |
* @method mySocketChatRoom | |
* | |
* @param roomId {String} A unique string to represent a single room | |
* @param username {String} The username to use on this room | |
*/ | |
function mySocketChatRoom(roomId, username) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import os, logging, tornado.web | |
from datetime import datetime | |
from sockjs.tornado import SockJSRouter | |
from sockjsroom import SockJSRoomHandler | |