File: proxy_server.rb

package info (click to toggle)
ruby-faye-websocket 0.11.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 236 kB
  • sloc: ruby: 1,209; makefile: 3
file content (13 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
require 'bundler/setup'
require 'eventmachine'
require 'websocket/driver'

require File.expand_path('../../spec/proxy_server', __FILE__)

port   = ARGV[0]
secure = ARGV[1] == 'tls'

EM.run {
  proxy = ProxyServer.new(:debug => true)
  proxy.listen(port, secure)
}