pakyow-realtime 1.0.0.rc3 → 1.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/pakyow/realtime/server.rb +1 -0
- data/lib/pakyow/realtime/websocket.rb +10 -8
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 17a07567829de4b1d3c1c1d8afe005a28e354344cb6482c8dbf66a0d1f72a1a8
|
4
|
+
data.tar.gz: 88ac5f561113617c600cb7edc0c70ad8454e7e94e90fc87eac4c4142a45561c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ce9e7e00b7760a221e235f3799a07d14d7600a42b8d0826a50dd2725d1d0a14d1623df109b8f9ac6a075b1ddfbd02638034b273fbfca16674cbba86c4ac87c0
|
7
|
+
data.tar.gz: 1c5e0be97eb0816c0182fe37cae58754d55cfcc04bc1f8278d8054ed651aa21fe333ce3d2d6c7f91a5a3cdcd87cc4d8bd0daf97d27a8f6485389550326e64903
|
@@ -80,13 +80,6 @@ module Pakyow
|
|
80
80
|
transmit("beat")
|
81
81
|
end
|
82
82
|
|
83
|
-
# @api private
|
84
|
-
def leave
|
85
|
-
trigger_presence(:leave)
|
86
|
-
end
|
87
|
-
|
88
|
-
private
|
89
|
-
|
90
83
|
def shutdown
|
91
84
|
if open?
|
92
85
|
@server.socket_disconnect(self)
|
@@ -95,6 +88,13 @@ module Pakyow
|
|
95
88
|
end
|
96
89
|
end
|
97
90
|
|
91
|
+
# @api private
|
92
|
+
def leave
|
93
|
+
trigger_presence(:leave)
|
94
|
+
end
|
95
|
+
|
96
|
+
private
|
97
|
+
|
98
98
|
def handle_open
|
99
99
|
@server.socket_connect(self)
|
100
100
|
@open = true
|
@@ -104,7 +104,9 @@ module Pakyow
|
|
104
104
|
end
|
105
105
|
|
106
106
|
def handle_message(message)
|
107
|
-
@logger.internal
|
107
|
+
@logger.internal {
|
108
|
+
"< " + message
|
109
|
+
}
|
108
110
|
end
|
109
111
|
|
110
112
|
def trigger_presence(event)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pakyow-realtime
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryan Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pakyow-core
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.0.0.
|
19
|
+
version: 1.0.0.rc4
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.0.0.
|
26
|
+
version: 1.0.0.rc4
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pakyow-presenter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.0.0.
|
33
|
+
version: 1.0.0.rc4
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.0.0.
|
40
|
+
version: 1.0.0.rc4
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: pakyow-routing
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.0.0.
|
47
|
+
version: 1.0.0.rc4
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - '='
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.0.
|
54
|
+
version: 1.0.0.rc4
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: pakyow-support
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 1.0.0.
|
61
|
+
version: 1.0.0.rc4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 1.0.0.
|
68
|
+
version: 1.0.0.rc4
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: async-websocket
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|