sinatra-websocketio 0.2.7 → 0.2.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/README.md +4 -4
- data/lib/sinatra-websocketio/options.rb +1 -1
- data/lib/sinatra-websocketio/version.rb +1 -1
- data/sample/bin/cui_chat_client.rb +1 -1
- data/sample/config.ru +1 -1
- data/test/app.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 105841f611ba1b177e4fdbc27523e9ede7e5f9a8
|
4
|
+
data.tar.gz: 333f97849781148127d4d473c04910c8c58b92ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbd2fcd973e3574635a596eaef49559cf507e05d1ea57e23dce2e60fbf957efc90449115120a3879172ef07c8dc697fba8b9226cdb19652d721e2010647fc36b
|
7
|
+
data.tar.gz: 7f790256313ad4ff10130e8658afeb9b0c722a1574c5530e083093195535ca6c95bda06b1601f4e7a39a03e68045868088105a581c96dcc5e69aa08381bca479
|
data/History.txt
CHANGED
data/README.md
CHANGED
@@ -33,7 +33,7 @@ Server Side
|
|
33
33
|
```ruby
|
34
34
|
require 'sinatra'
|
35
35
|
require 'sinatra/websocketio'
|
36
|
-
set :websocketio, :port =>
|
36
|
+
set :websocketio, :port => 9000
|
37
37
|
|
38
38
|
run Sinatra::Application
|
39
39
|
```
|
@@ -161,11 +161,11 @@ io.removeListener("error"); // remove all "error" listener
|
|
161
161
|
### Config
|
162
162
|
|
163
163
|
```ruby
|
164
|
-
set :websocketio, :port =>
|
164
|
+
set :websocketio, :port => 9000
|
165
165
|
```
|
166
166
|
or
|
167
167
|
|
168
|
-
% WS_PORT=
|
168
|
+
% WS_PORT=9000 rackup config.ru
|
169
169
|
|
170
170
|
|
171
171
|
|
@@ -182,7 +182,7 @@ Test
|
|
182
182
|
% gem install bundler
|
183
183
|
% bundle install
|
184
184
|
% export PORT=5000
|
185
|
-
% export WS_PORT=
|
185
|
+
% export WS_PORT=9000
|
186
186
|
% export PID_FILE=/tmp/sinatra-websocketio-test.pid
|
187
187
|
% rake test
|
188
188
|
|
@@ -7,7 +7,7 @@ require 'sinatra/websocketio/client'
|
|
7
7
|
|
8
8
|
name = `whoami`.strip || 'shokai'
|
9
9
|
|
10
|
-
client = Sinatra::WebSocketIO::Client.new('ws://localhost:
|
10
|
+
client = Sinatra::WebSocketIO::Client.new('ws://localhost:9000').connect
|
11
11
|
|
12
12
|
client.on :connect do |session|
|
13
13
|
puts "connect!! (session_id:#{session})"
|
data/sample/config.ru
CHANGED
data/test/app.rb
CHANGED