daily pastebin goal
0%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.     var io = new WebSocketIO().connect();
  3.     // io.on("log", function(value) {
  4.     //     alert(value)
  5.     // });
  6. </script>
  7.    
  8. require 'sinatra'
  9. require 'sinatra/websocketio'
  10.  
  11. set :port, 5005
  12. set :bind, '0.0.0.0'
  13. set :public_folder, "#{File.dirname(__FILE__)}/views"
  14. set :websocketio, port: 9000
  15. enable :sessions
  16.  
  17.  
  18. get '/list' do
  19.   "Hello world!"
  20. end
  21.  
  22. get '/' do
  23.   erb :index, layout: :layout
  24. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top