Skip to content

Instantly share code, notes, and snippets.

View ericmadethat's full-sized avatar

Eric Nguyen ericmadethat

  • Vancouver, Canada
View GitHub Profile
@ericmadethat
ericmadethat / Stuff
Created March 31, 2015 07:49
broadcast wip
connection.open
Does 2 things: sets up a RTCMultisession connection (similar to what connection.connect does) but will also create a 'session /room' and join it.
connection.connect
If there is already a RTCMultisession set up (by 'connection.open'), it will connect to it, but will not JOIN it automatically. It will however CALL 'connection.onNewSession'. If 'connection.open' didn't set up a RTCMultisession yet, then 'connection.connect' will set one up, but will not create a new room.
connection.onNewSession
This lays the rules for what happens when the RTCMultisession detects a new incoming connection. In here, we called 'session.join' to officially join the room.
connection.onstream

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt