1. Martin Thorsen Ranang
  2. orbited


heya...@fe34127c-c842-0410-aa83-9fc675b9a81c  committed 9ad3985


  • Participants
  • Parent commits 67f6f31
  • Branches 0.5

Comments (0)

Files changed (1)

File presentations/oscon/transcript

View file
  • Ignore whitespace
 [Slide: TCPSocket bridge ]
 J: Exactly. They are TCP protocols. So thats my argument. Lets write a SINGLE bridge that takes raw TCP data and transcodes it to ajax/comet.
+M: What does that even mean?
+J: Remember that TCPSocket api I told you about?
+M: yeah?
+J: So lets say you have this code:
+[tcpsocket connect]
+( conn = new TCPSocket("domain", port) )
+J: Now when you create a TCPSocket, it actually causes the Orbited server to create a tcp socket to the destination port and domain
+J: So when you call conn.send("data"), it takes that payload "data" and makes a POST to Orbited with that payload. 
+J: Next, Orbited, takes that data, and writes it to the TCP socket. It doesnt care what the protocol is whatsoever, it just proxies any bytes that it receives.
+J: So when the back-end server sends some downward, Orbited will locate the appropriate live Comet connection
 M: So in the case of the irc client you'd be getting *raw* irc data in the browser?