예제 #1
0
파일: durian.py 프로젝트: caoxieyu/swarm
def close_chatroom(client):
    def make_request():
        return "SS|chat.closeroom|16|uid=123&roomid=7\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())
예제 #2
0
파일: durian.py 프로젝트: teazj/swarm
def heartbeat(client):
    def make_request():
        return "heartbeat\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())
예제 #3
0
파일: durian.py 프로젝트: caoxieyu/swarm
def heartbeat(client):
    def make_request():
        return "SS|tcp.heartbeat|7|uid=123\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())
예제 #4
0
파일: durian.py 프로젝트: teazj/swarm
def leave_chatroom(client):
    def make_request():
        return "leave_chatroom\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())