Example #1
0
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())
Example #2
0
def heartbeat(client):
    def make_request():
        return "heartbeat\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())
Example #3
0
def heartbeat(client):
    def make_request():
        return "SS|tcp.heartbeat|7|uid=123\r\n"

    client.send_for_reply(make_request(), reply_parser_crlf())
Example #4
0
def leave_chatroom(client):
    def make_request():
        return "leave_chatroom\r\n"

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