示例#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())