def connect(username, password, host, heartbeats=(<NUM_LIT:0>,<NUM_LIT:0>)):
if len(heartbeats) != <NUM_LIT:2>:<EOL><INDENT>raise ValueError('<STR_LIT>' % heartbeats)<EOL><DEDENT>cx, cy = heartbeats<EOL>return "<STR_LIT>" % (host, cx, cy, username, password)<EOL>
STOMP connect command.

    username, password:
        These are the needed auth details to connect to the
        message server.

    After sending this we will receive a CONNECTED
    message which will contain our session id.