This is a pure Ruby websocket implementation. It supports TLS (wss://)
clients and servers and requires no additional dependencies.
Echo messages received back to the client
options = { :host => 'localhost', :port => '8088' }
socket_server = WebSocket::Server.new(options)
socket_server.run!
server.on(:text) do |conn, payload|
conn.send_frame(1, payload.string)
endTo run tests, run make test.