Upload

Loading...

Clean, simple websockets on Sinatra example

1,647

Loading...

Loading...

Transcript

The interactive transcript could not be loaded.

Loading...

Loading...

Rating is available when the video has been rented.
This feature is not available right now. Please try again later.
Published on Jun 21, 2012

Clean example of using websocket-rack with Sinatra. The websocket endpoint is mounted via a route (see config.ru). This allows for the web socket app and sinatra app to run on the same port. The example includes detection for for the websocket link going down with automatic reconnection. To see it in action stop/start thin and see what the client does in the browser. http://bit.ly/sinatrasockets

Loading...

When autoplay is enabled, a suggested video will automatically play next.

Up Next


Sign in to add this to Watch Later

Add to