Sha256: 664cf8597f1ff52cdae4d02de22f0e4f2968a335ba9a21edde44ccd56efcfcfa

Contents?: true

Size: 261 Bytes

Versions: 3

Compression:

Stored size: 261 Bytes

Contents

#!/usr/bin/env ruby

fork {
	load 'shoutchat.rb'
	exit 0
}

require 'webrick'

server = WEBrick::HTTPServer.new({
	:Port => 8080,
	:BindAddress => '127.0.0.1',
	:DocumentRoot => File.dirname(__FILE__)+'/public'})

trap('INT') { server.shutdown }

server.start

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
cool.io-websocket-0.1.4 examples/shoutchat
rev-websocket-0.1.3 examples/shoutchat
rev-websocket-0.1.2 examples/shoutchat