Skip to content

Commit

Permalink
Made /channel optional
Browse files Browse the repository at this point in the history
  • Loading branch information
josephg committed Oct 27, 2011
1 parent 6b87c0d commit 8ba731c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion client.bot.example
Expand Up @@ -2,7 +2,7 @@

@hub.load
federatron: =>
@transmit 'federate', '/channel'
@transmit 'federate'
layoutron:
jsonformatic:
displayinator: [
Expand Down
2 changes: 1 addition & 1 deletion robots/federatron.bot
Expand Up @@ -8,7 +8,7 @@ BCSocket = window?.BCSocket or require('browserchannel').BCSocket
@listen 'federate', ({data:host, local}, reply) =>
return unless local

host ||= '/channel'
host = '/channel' unless typeof host is 'string'
party = new BCSocket host, reconnect: true

party.onopen = ->
Expand Down

0 comments on commit 8ba731c

Please sign in to comment.