 
     pusher = $pusher(client)
 
-    $scope.channel = pusher.subscribe('private-channel')
+    $scope.subscribeToLocalRoom = ->
+      $scope.channel = pusher.subscribe("private-location-#{$scope.roomName()}")
 
-    $scope.channel.bind "pusher:subscription_succeeded", ->
-      $scope.state.pusherSubscription.active = true
+      $scope.channel.bind "pusher:subscription_succeeded", ->
+        $scope.state.pusherSubscription.active = true
 
     alert = $mdDialog.alert({
       title: 'Getting your location',

        lng: 150.644

    map = new google.maps.Map(document.getElementById("map-canvas"), mapOptions)

    $scope.shouldShowNewMessageForm = ->
      return false unless $scope.position?

      navigator.geolocation.getCurrentPosition (position) ->
        $scope.position = position
        $mdDialog.hide()
        $scope.subscribeToLocalRoom()

        pos = new google.maps.LatLng(position.coords.latitude, position.coords.longitude)
        map.setCenter pos
        map.setZoom 14
