def connect(username, password):
    """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.

    """
    return 'CONNECT\nlogin:%s\npasscode:%s\n\n\x00\n' % (username, password)
