             if not isFounder
                 @setState peerIdForFounder: peerIdForFounder
 
-                connection = peer.connect peerIdForFounder
+                connection = @peer.connect peerIdForFounder
 
                 connection.on "open", =>
                     @connections.push connection

        messages: []

    componentWillMount: ->
        peerIdForFounder = getSegments()[1]
        isFounder = not peerIdForFounder?

        peer = new Peer(key: PEER_KEY)

        @connections = []

        peer.on "error", (error) =>
            console.log error

            @props.addAlert type: "danger", "Something went terribly wrong! See console."

        peer.on "open", (peerId) =>
            @peerId = peer.id

            if isFounder
                peerIdForFounder = peer.id
                @setState peerIdForFounder: peerIdForFounder

                peer.on "connection", (connection) =>
                    connection.on "open", =>
                        if @connections.length
                            peerIds = _.map @connections, (connection) -> connection.peer

                    connection.on "data", (data) =>
                        if data.type == "newConnection"
                            _.forEach data.peerIds, (peerId) =>
                                connection = @peer.connect peerId

                                do (connection) =>
                                    connection.on "open", =>
