em-cometio-client 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +4 -0
- data/lib/em-cometio-client/client.rb +0 -2
- data/lib/em-cometio-client/version.rb +1 -1
- data/sample/cui_chat_client.rb +3 -2
- metadata +2 -2
data/History.txt
CHANGED
data/sample/cui_chat_client.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
-
require 'rubygems'
|
3
2
|
$:.unshift File.expand_path '../lib', File.dirname(__FILE__)
|
3
|
+
require 'rubygems'
|
4
4
|
require 'em-cometio-client'
|
5
5
|
|
6
6
|
name = `whoami`.strip || 'shokai'
|
7
|
+
url = ARGV.shift || 'http://localhost:5000/cometio/io'
|
7
8
|
|
8
9
|
EM::run do
|
9
|
-
client = EM::CometIO::Client.new(
|
10
|
+
client = EM::CometIO::Client.new(url).connect
|
10
11
|
|
11
12
|
client.on :connect do |session|
|
12
13
|
puts "connect!! (sessin_id:#{session})"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: em-cometio-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: minitest
|