examples/http/websocket_secure_server.rb in polyphony-0.15 vs examples/http/websocket_secure_server.rb in polyphony-0.16
- old
+ new
@@ -1,12 +1,11 @@
# frozen_string_literal: true
-require 'modulation'
+require 'bundler/setup'
+require 'polyphony/http'
require 'localhost/authority'
STDOUT.sync = true
-
-Polyphony = import('../../lib/polyphony')
def ws_handler(conn)
while msg = conn.recv
conn << "you said: #{msg}"
end
\ No newline at end of file