packwerk 2.2.0 → 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +29 -20
- data/.github/workflows/cla.yml +22 -0
- data/.rubocop.yml +48 -19
- data/Gemfile +7 -2
- data/Gemfile.lock +201 -175
- data/README.md +1 -1
- data/RESOLVING_VIOLATIONS.md +81 -0
- data/Rakefile +1 -1
- data/USAGE.md +14 -5
- data/bin/m +1 -1
- data/bin/rake +1 -1
- data/bin/rubocop +1 -1
- data/bin/srb +1 -1
- data/bin/tapioca +1 -1
- data/gemfiles/Gemfile-rails-6-0 +1 -1
- data/gemfiles/Gemfile-rails-6-1 +22 -0
- data/lib/packwerk/application_validator.rb +7 -6
- data/lib/packwerk/association_inspector.rb +17 -15
- data/lib/packwerk/cache.rb +36 -29
- data/lib/packwerk/cli.rb +5 -6
- data/lib/packwerk/const_node_inspector.rb +8 -7
- data/lib/packwerk/constant_name_inspector.rb +2 -2
- data/lib/packwerk/deprecated_references.rb +34 -19
- data/lib/packwerk/file_processor.rb +14 -14
- data/lib/packwerk/files_for_processing.rb +27 -31
- data/lib/packwerk/formatters/offenses_formatter.rb +3 -3
- data/lib/packwerk/formatters/progress_formatter.rb +2 -2
- data/lib/packwerk/node.rb +1 -294
- data/lib/packwerk/node_helpers.rb +335 -0
- data/lib/packwerk/node_processor.rb +6 -5
- data/lib/packwerk/node_processor_factory.rb +3 -3
- data/lib/packwerk/node_visitor.rb +1 -1
- data/lib/packwerk/offense_collection.rb +6 -3
- data/lib/packwerk/offenses_formatter.rb +2 -2
- data/lib/packwerk/package.rb +3 -0
- data/lib/packwerk/package_set.rb +2 -0
- data/lib/packwerk/parse_run.rb +15 -13
- data/lib/packwerk/parsed_constant_definitions.rb +23 -20
- data/lib/packwerk/parsers/erb.rb +3 -3
- data/lib/packwerk/reference_checking/checkers/checker.rb +16 -3
- data/lib/packwerk/reference_checking/checkers/dependency_checker.rb +16 -0
- data/lib/packwerk/reference_checking/checkers/privacy_checker.rb +18 -0
- data/lib/packwerk/reference_checking/reference_checker.rb +3 -1
- data/lib/packwerk/reference_extractor.rb +51 -48
- data/lib/packwerk/reference_offense.rb +3 -27
- data/lib/packwerk/run_context.rb +3 -3
- data/lib/packwerk/spring_command.rb +1 -1
- data/lib/packwerk/version.rb +1 -1
- data/lib/packwerk.rb +1 -0
- data/packwerk.gemspec +4 -12
- data/sorbet/rbi/gems/actioncable@7.0.3.1.rbi +2754 -0
- data/sorbet/rbi/gems/actionmailbox@7.0.3.1.rbi +1496 -0
- data/sorbet/rbi/gems/actionmailer@7.0.3.1.rbi +2362 -0
- data/sorbet/rbi/gems/actionpack@7.0.3.1.rbi +19397 -0
- data/sorbet/rbi/gems/actiontext@7.0.3.1.rbi +1569 -0
- data/sorbet/rbi/gems/actionview@7.0.3.1.rbi +14907 -0
- data/sorbet/rbi/gems/activejob@7.0.3.1.rbi +2553 -0
- data/sorbet/rbi/gems/activemodel@7.0.3.1.rbi +5999 -0
- data/sorbet/rbi/gems/activerecord@7.0.3.1.rbi +37832 -0
- data/sorbet/rbi/gems/activestorage@7.0.3.1.rbi +2321 -0
- data/sorbet/rbi/gems/activesupport@7.0.3.1.rbi +18818 -0
- data/sorbet/rbi/gems/concurrent-ruby@1.1.10.rbi +11722 -0
- data/sorbet/rbi/gems/constant_resolver@0.2.0.rbi +90 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
- data/sorbet/rbi/gems/digest@3.1.0.rbi +189 -0
- data/sorbet/rbi/gems/erubi@1.11.0.rbi +140 -0
- data/sorbet/rbi/gems/globalid@1.0.0.rbi +572 -0
- data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
- data/sorbet/rbi/gems/json@2.6.2.rbi +1548 -0
- data/sorbet/rbi/gems/language_server-protocol@3.16.0.3.rbi +8 -0
- data/sorbet/rbi/gems/loofah@2.18.0.rbi +877 -0
- data/sorbet/rbi/gems/m@1.6.0.rbi +257 -0
- data/sorbet/rbi/gems/marcel@1.0.2.rbi +220 -0
- data/sorbet/rbi/gems/mini_mime@1.1.2.rbi +170 -0
- data/sorbet/rbi/gems/mini_portile2@2.8.0.rbi +8 -0
- data/sorbet/rbi/gems/minitest-focus@1.3.1.rbi +104 -0
- data/sorbet/rbi/gems/minitest@5.16.2.rbi +2136 -0
- data/sorbet/rbi/gems/mocha@1.14.0.rbi +4177 -0
- data/sorbet/rbi/gems/net-imap@0.2.3.rbi +2147 -0
- data/sorbet/rbi/gems/net-pop@0.1.1.rbi +926 -0
- data/sorbet/rbi/gems/net-protocol@0.1.3.rbi +11 -0
- data/sorbet/rbi/gems/net-smtp@0.3.1.rbi +1108 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +153 -0
- data/sorbet/rbi/gems/nio4r@2.5.8.rbi +292 -0
- data/sorbet/rbi/gems/nokogiri@1.13.8.rbi +6478 -0
- data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
- data/sorbet/rbi/gems/parser@3.1.2.1.rbi +9029 -0
- data/sorbet/rbi/gems/prettier_print@0.1.0.rbi +8 -0
- data/sorbet/rbi/gems/pry@0.14.1.rbi +8 -0
- data/sorbet/rbi/gems/racc@1.6.0.rbi +152 -0
- data/sorbet/rbi/gems/rack-test@2.0.2.rbi +953 -0
- data/sorbet/rbi/gems/rack@2.2.4.rbi +5636 -0
- data/sorbet/rbi/gems/rails-html-sanitizer@1.4.3.rbi +688 -0
- data/sorbet/rbi/gems/rails@7.0.3.1.rbi +8 -0
- data/sorbet/rbi/gems/railties@7.0.3.1.rbi +3507 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +392 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +2924 -0
- data/sorbet/rbi/gems/rbi@0.0.15.rbi +3007 -0
- data/sorbet/rbi/gems/regexp_parser@2.5.0.rbi +3383 -0
- data/sorbet/rbi/gems/rexml@3.2.5.rbi +4714 -0
- data/sorbet/rbi/gems/rubocop-ast@1.21.0.rbi +6961 -0
- data/sorbet/rbi/gems/rubocop-performance@1.14.3.rbi +2986 -0
- data/sorbet/rbi/gems/{rubocop-shopify@2.0.1.rbi → rubocop-shopify@2.9.0.rbi} +4 -4
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.11.rbi +992 -0
- data/sorbet/rbi/gems/rubocop@1.34.1.rbi +51820 -0
- data/sorbet/rbi/gems/ruby-lsp@0.2.1.rbi +11 -0
- data/sorbet/rbi/gems/smart_properties@1.17.0.rbi +474 -0
- data/sorbet/rbi/gems/spoom@1.1.11.rbi +2181 -0
- data/sorbet/rbi/gems/spring@4.0.0.rbi +411 -0
- data/sorbet/rbi/gems/strscan@3.0.4.rbi +8 -0
- data/sorbet/rbi/gems/syntax_tree@3.3.0.rbi +8 -0
- data/sorbet/rbi/gems/tapioca@0.9.2.rbi +3181 -0
- data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
- data/sorbet/rbi/gems/timeout@0.3.0.rbi +142 -0
- data/sorbet/rbi/gems/tzinfo@2.0.5.rbi +5896 -0
- data/sorbet/rbi/gems/unicode-display_width@2.2.0.rbi +48 -0
- data/sorbet/rbi/gems/unparser@0.6.5.rbi +4529 -0
- data/sorbet/rbi/gems/webrick@1.7.0.rbi +2582 -0
- data/sorbet/rbi/gems/websocket-driver@0.7.5.rbi +993 -0
- data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +388 -0
- data/sorbet/rbi/gems/yard@0.9.28.rbi +18242 -0
- data/sorbet/rbi/gems/zeitwerk@2.6.0.rbi +867 -0
- data/sorbet/rbi/shims/psych.rbi +5 -0
- data/sorbet/tapioca/require.rb +2 -3
- metadata +88 -157
- data/.github/probots.yml +0 -2
- data/library.yml +0 -6
- data/service.yml +0 -1
- data/sorbet/rbi/gems/actioncable@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -860
- data/sorbet/rbi/gems/actionmailbox@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -568
- data/sorbet/rbi/gems/actionmailer@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -587
- data/sorbet/rbi/gems/actionpack@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -5314
- data/sorbet/rbi/gems/actiontext@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -699
- data/sorbet/rbi/gems/actionview@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -2515
- data/sorbet/rbi/gems/activejob@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -624
- data/sorbet/rbi/gems/activemodel@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -1248
- data/sorbet/rbi/gems/activerecord@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8363
- data/sorbet/rbi/gems/activestorage@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -876
- data/sorbet/rbi/gems/activesupport@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -3987
- data/sorbet/rbi/gems/colorize@0.8.1.rbi +0 -40
- data/sorbet/rbi/gems/commander@4.5.2.rbi +0 -8
- data/sorbet/rbi/gems/concurrent-ruby@1.1.8.rbi +0 -1969
- data/sorbet/rbi/gems/constant_resolver@0.1.5.rbi +0 -26
- data/sorbet/rbi/gems/erubi@1.10.0.rbi +0 -41
- data/sorbet/rbi/gems/globalid@0.4.2.rbi +0 -178
- data/sorbet/rbi/gems/highline@2.0.3.rbi +0 -8
- data/sorbet/rbi/gems/i18n@1.8.10.rbi +0 -600
- data/sorbet/rbi/gems/loofah@2.9.0.rbi +0 -274
- data/sorbet/rbi/gems/m@1.5.1.rbi +0 -108
- data/sorbet/rbi/gems/marcel@1.0.0.rbi +0 -70
- data/sorbet/rbi/gems/mini_mime@1.0.3.rbi +0 -71
- data/sorbet/rbi/gems/minitest-focus@1.2.1.rbi +0 -8
- data/sorbet/rbi/gems/minitest@5.14.4.rbi +0 -544
- data/sorbet/rbi/gems/mocha@1.12.0.rbi +0 -953
- data/sorbet/rbi/gems/nio4r@2.5.7.rbi +0 -90
- data/sorbet/rbi/gems/nokogiri@1.11.2.rbi +0 -1647
- data/sorbet/rbi/gems/parallel@1.20.1.rbi +0 -117
- data/sorbet/rbi/gems/parlour@6.0.0.rbi +0 -1272
- data/sorbet/rbi/gems/parser@3.0.0.0.rbi +0 -1745
- data/sorbet/rbi/gems/pry@0.14.0.rbi +0 -8
- data/sorbet/rbi/gems/psych@3.3.2.rbi +0 -24
- data/sorbet/rbi/gems/racc@1.5.2.rbi +0 -57
- data/sorbet/rbi/gems/rack-test@1.1.0.rbi +0 -335
- data/sorbet/rbi/gems/rack@2.2.3.rbi +0 -1718
- data/sorbet/rbi/gems/rails-html-sanitizer@1.3.0.rbi +0 -213
- data/sorbet/rbi/gems/rails@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -8
- data/sorbet/rbi/gems/railties@7.0.0.alpha-d612542336d9a61381311c95a27d801bb4094779.rbi +0 -880
- data/sorbet/rbi/gems/rainbow@3.0.0.rbi +0 -155
- data/sorbet/rbi/gems/rake@13.0.3.rbi +0 -837
- data/sorbet/rbi/gems/regexp_parser@2.1.1.rbi +0 -8
- data/sorbet/rbi/gems/rexml@3.2.4.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-ast@1.4.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-performance@1.10.2.rbi +0 -8
- data/sorbet/rbi/gems/rubocop-sorbet@0.6.1.rbi +0 -8
- data/sorbet/rbi/gems/rubocop@1.12.0.rbi +0 -8
- data/sorbet/rbi/gems/smart_properties@1.15.0.rbi +0 -168
- data/sorbet/rbi/gems/spoom@1.1.0.rbi +0 -1061
- data/sorbet/rbi/gems/spring@2.1.1.rbi +0 -160
- data/sorbet/rbi/gems/sprockets-rails@3.2.2.rbi +0 -451
- data/sorbet/rbi/gems/sprockets@4.0.2.rbi +0 -1133
- data/sorbet/rbi/gems/tapioca@0.4.19.rbi +0 -603
- data/sorbet/rbi/gems/thor@1.1.0.rbi +0 -893
- data/sorbet/rbi/gems/tzinfo@2.0.4.rbi +0 -566
- data/sorbet/rbi/gems/unicode-display_width@2.0.0.rbi +0 -8
- data/sorbet/rbi/gems/websocket-driver@0.7.3.rbi +0 -438
- data/sorbet/rbi/gems/zeitwerk@2.4.2.rbi +0 -177
@@ -0,0 +1,993 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `websocket-driver` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem websocket-driver`.
|
6
|
+
|
7
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:16
|
8
|
+
module WebSocket; end
|
9
|
+
|
10
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:19
|
11
|
+
class WebSocket::Driver
|
12
|
+
include ::WebSocket::Driver::EventEmitter
|
13
|
+
|
14
|
+
# @return [Driver] a new instance of Driver
|
15
|
+
#
|
16
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:71
|
17
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
18
|
+
|
19
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:89
|
20
|
+
def add_extension(extension); end
|
21
|
+
|
22
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:122
|
23
|
+
def binary(message); end
|
24
|
+
|
25
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:134
|
26
|
+
def close(reason = T.unsafe(nil), code = T.unsafe(nil)); end
|
27
|
+
|
28
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:126
|
29
|
+
def ping(*args); end
|
30
|
+
|
31
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:130
|
32
|
+
def pong(*args); end
|
33
|
+
|
34
|
+
# Returns the value of attribute protocol.
|
35
|
+
#
|
36
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:69
|
37
|
+
def protocol; end
|
38
|
+
|
39
|
+
# Returns the value of attribute ready_state.
|
40
|
+
#
|
41
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:69
|
42
|
+
def ready_state; end
|
43
|
+
|
44
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:93
|
45
|
+
def set_header(name, value); end
|
46
|
+
|
47
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:99
|
48
|
+
def start; end
|
49
|
+
|
50
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:84
|
51
|
+
def state; end
|
52
|
+
|
53
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:117
|
54
|
+
def text(message); end
|
55
|
+
|
56
|
+
private
|
57
|
+
|
58
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:155
|
59
|
+
def fail(type, message); end
|
60
|
+
|
61
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:143
|
62
|
+
def fail_handshake(error); end
|
63
|
+
|
64
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:161
|
65
|
+
def open; end
|
66
|
+
|
67
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:168
|
68
|
+
def queue(message); end
|
69
|
+
|
70
|
+
class << self
|
71
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:173
|
72
|
+
def client(socket, options = T.unsafe(nil)); end
|
73
|
+
|
74
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:197
|
75
|
+
def encode(data, encoding = T.unsafe(nil)); end
|
76
|
+
|
77
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:181
|
78
|
+
def rack(socket, options = T.unsafe(nil)); end
|
79
|
+
|
80
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:177
|
81
|
+
def server(socket, options = T.unsafe(nil)); end
|
82
|
+
|
83
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:212
|
84
|
+
def validate_options(options, valid_keys); end
|
85
|
+
|
86
|
+
# @return [Boolean]
|
87
|
+
#
|
88
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:220
|
89
|
+
def websocket?(env); end
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:4
|
94
|
+
class WebSocket::Driver::Client < ::WebSocket::Driver::Hybi
|
95
|
+
# @return [Client] a new instance of Client
|
96
|
+
#
|
97
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:13
|
98
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
99
|
+
|
100
|
+
# Returns the value of attribute headers.
|
101
|
+
#
|
102
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:11
|
103
|
+
def headers; end
|
104
|
+
|
105
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:61
|
106
|
+
def parse(chunk); end
|
107
|
+
|
108
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:50
|
109
|
+
def proxy(origin, options = T.unsafe(nil)); end
|
110
|
+
|
111
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:54
|
112
|
+
def start; end
|
113
|
+
|
114
|
+
# Returns the value of attribute status.
|
115
|
+
#
|
116
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:11
|
117
|
+
def status; end
|
118
|
+
|
119
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:46
|
120
|
+
def version; end
|
121
|
+
|
122
|
+
private
|
123
|
+
|
124
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:87
|
125
|
+
def fail_handshake(message); end
|
126
|
+
|
127
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:78
|
128
|
+
def handshake_request; end
|
129
|
+
|
130
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:94
|
131
|
+
def validate_handshake; end
|
132
|
+
|
133
|
+
class << self
|
134
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:7
|
135
|
+
def generate_key; end
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/client.rb:5
|
140
|
+
WebSocket::Driver::Client::VALID_SCHEMES = T.let(T.unsafe(nil), Array)
|
141
|
+
|
142
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:52
|
143
|
+
class WebSocket::Driver::CloseEvent < ::Struct
|
144
|
+
# Returns the value of attribute code
|
145
|
+
#
|
146
|
+
# @return [Object] the current value of code
|
147
|
+
def code; end
|
148
|
+
|
149
|
+
# Sets the attribute code
|
150
|
+
#
|
151
|
+
# @param value [Object] the value to set the attribute code to.
|
152
|
+
# @return [Object] the newly set value
|
153
|
+
#
|
154
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:52
|
155
|
+
def code=(_); end
|
156
|
+
|
157
|
+
# Returns the value of attribute reason
|
158
|
+
#
|
159
|
+
# @return [Object] the current value of reason
|
160
|
+
def reason; end
|
161
|
+
|
162
|
+
# Sets the attribute reason
|
163
|
+
#
|
164
|
+
# @param value [Object] the value to set the attribute reason to.
|
165
|
+
# @return [Object] the newly set value
|
166
|
+
#
|
167
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:52
|
168
|
+
def reason=(_); end
|
169
|
+
|
170
|
+
class << self
|
171
|
+
def [](*_arg0); end
|
172
|
+
def inspect; end
|
173
|
+
def members; end
|
174
|
+
def new(*_arg0); end
|
175
|
+
end
|
176
|
+
end
|
177
|
+
|
178
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:56
|
179
|
+
class WebSocket::Driver::ConfigurationError < ::ArgumentError; end
|
180
|
+
|
181
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:47
|
182
|
+
class WebSocket::Driver::ConnectEvent < ::Struct
|
183
|
+
class << self
|
184
|
+
def [](*_arg0); end
|
185
|
+
def inspect; end
|
186
|
+
def members; end
|
187
|
+
def new(*_arg0); end
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:4
|
192
|
+
class WebSocket::Driver::Draft75 < ::WebSocket::Driver
|
193
|
+
# @return [Draft75] a new instance of Draft75
|
194
|
+
#
|
195
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:5
|
196
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
197
|
+
|
198
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:21
|
199
|
+
def close(reason = T.unsafe(nil), code = T.unsafe(nil)); end
|
200
|
+
|
201
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:73
|
202
|
+
def frame(buffer, type = T.unsafe(nil), error_type = T.unsafe(nil)); end
|
203
|
+
|
204
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:28
|
205
|
+
def parse(chunk); end
|
206
|
+
|
207
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:17
|
208
|
+
def version; end
|
209
|
+
|
210
|
+
private
|
211
|
+
|
212
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:82
|
213
|
+
def handshake_response; end
|
214
|
+
|
215
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft75.rb:88
|
216
|
+
def parse_leading_byte(octet); end
|
217
|
+
end
|
218
|
+
|
219
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:4
|
220
|
+
class WebSocket::Driver::Draft76 < ::WebSocket::Driver::Draft75
|
221
|
+
# @return [Draft76] a new instance of Draft76
|
222
|
+
#
|
223
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:7
|
224
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
225
|
+
|
226
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:31
|
227
|
+
def close(reason = T.unsafe(nil), code = T.unsafe(nil)); end
|
228
|
+
|
229
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:25
|
230
|
+
def start; end
|
231
|
+
|
232
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:21
|
233
|
+
def version; end
|
234
|
+
|
235
|
+
private
|
236
|
+
|
237
|
+
# @raise [ProtocolError]
|
238
|
+
#
|
239
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:41
|
240
|
+
def handshake_response; end
|
241
|
+
|
242
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:66
|
243
|
+
def handshake_signature; end
|
244
|
+
|
245
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:88
|
246
|
+
def number_from_key(key); end
|
247
|
+
|
248
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:81
|
249
|
+
def parse_leading_byte(octet); end
|
250
|
+
|
251
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:73
|
252
|
+
def send_handshake_body; end
|
253
|
+
|
254
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:93
|
255
|
+
def spaces_in_key(key); end
|
256
|
+
end
|
257
|
+
|
258
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/draft76.rb:5
|
259
|
+
WebSocket::Driver::Draft76::BODY_SIZE = T.let(T.unsafe(nil), Integer)
|
260
|
+
|
261
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:4
|
262
|
+
module WebSocket::Driver::EventEmitter
|
263
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:5
|
264
|
+
def initialize; end
|
265
|
+
|
266
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:9
|
267
|
+
def add_listener(event, callable = T.unsafe(nil), &block); end
|
268
|
+
|
269
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:37
|
270
|
+
def emit(event, *args); end
|
271
|
+
|
272
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:43
|
273
|
+
def listener_count(event); end
|
274
|
+
|
275
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:48
|
276
|
+
def listeners(event); end
|
277
|
+
|
278
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:15
|
279
|
+
def on(event, callable = T.unsafe(nil), &block); end
|
280
|
+
|
281
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:29
|
282
|
+
def remove_all_listeners(event = T.unsafe(nil)); end
|
283
|
+
|
284
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/event_emitter.rb:23
|
285
|
+
def remove_listener(event, callable = T.unsafe(nil), &block); end
|
286
|
+
end
|
287
|
+
|
288
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:4
|
289
|
+
class WebSocket::Driver::Headers
|
290
|
+
# @return [Headers] a new instance of Headers
|
291
|
+
#
|
292
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:7
|
293
|
+
def initialize(received = T.unsafe(nil)); end
|
294
|
+
|
295
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:20
|
296
|
+
def [](name); end
|
297
|
+
|
298
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:24
|
299
|
+
def []=(name, value); end
|
300
|
+
|
301
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:15
|
302
|
+
def clear; end
|
303
|
+
|
304
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:31
|
305
|
+
def inspect; end
|
306
|
+
|
307
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:35
|
308
|
+
def to_h; end
|
309
|
+
|
310
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:39
|
311
|
+
def to_s; end
|
312
|
+
end
|
313
|
+
|
314
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/headers.rb:5
|
315
|
+
WebSocket::Driver::Headers::ALLOWED_DUPLICATES = T.let(T.unsafe(nil), Array)
|
316
|
+
|
317
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:4
|
318
|
+
class WebSocket::Driver::Hybi < ::WebSocket::Driver
|
319
|
+
# @return [Hybi] a new instance of Hybi
|
320
|
+
#
|
321
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:57
|
322
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
323
|
+
|
324
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:84
|
325
|
+
def add_extension(extension); end
|
326
|
+
|
327
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:127
|
328
|
+
def binary(message); end
|
329
|
+
|
330
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:140
|
331
|
+
def close(reason = T.unsafe(nil), code = T.unsafe(nil)); end
|
332
|
+
|
333
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:157
|
334
|
+
def frame(buffer, type = T.unsafe(nil), code = T.unsafe(nil)); end
|
335
|
+
|
336
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:89
|
337
|
+
def parse(chunk); end
|
338
|
+
|
339
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:131
|
340
|
+
def ping(message = T.unsafe(nil), &callback); end
|
341
|
+
|
342
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:136
|
343
|
+
def pong(message = T.unsafe(nil)); end
|
344
|
+
|
345
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:80
|
346
|
+
def version; end
|
347
|
+
|
348
|
+
private
|
349
|
+
|
350
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:334
|
351
|
+
def check_frame_length; end
|
352
|
+
|
353
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:345
|
354
|
+
def emit_frame(buffer); end
|
355
|
+
|
356
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:393
|
357
|
+
def emit_message; end
|
358
|
+
|
359
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:268
|
360
|
+
def fail(type, message); end
|
361
|
+
|
362
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:230
|
363
|
+
def handshake_response; end
|
364
|
+
|
365
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:323
|
366
|
+
def parse_extended_length(buffer); end
|
367
|
+
|
368
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:306
|
369
|
+
def parse_length(octet); end
|
370
|
+
|
371
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:273
|
372
|
+
def parse_opcode(octet); end
|
373
|
+
|
374
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:194
|
375
|
+
def send_frame(frame); end
|
376
|
+
|
377
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:256
|
378
|
+
def shutdown(code, reason, error = T.unsafe(nil)); end
|
379
|
+
|
380
|
+
class << self
|
381
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:10
|
382
|
+
def generate_accept(key); end
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:17
|
387
|
+
WebSocket::Driver::Hybi::BYTE = T.let(T.unsafe(nil), Integer)
|
388
|
+
|
389
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:51
|
390
|
+
WebSocket::Driver::Hybi::DEFAULT_ERROR_CODE = T.let(T.unsafe(nil), Integer)
|
391
|
+
|
392
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:38
|
393
|
+
WebSocket::Driver::Hybi::ERRORS = T.let(T.unsafe(nil), Hash)
|
394
|
+
|
395
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:50
|
396
|
+
WebSocket::Driver::Hybi::ERROR_CODES = T.let(T.unsafe(nil), Array)
|
397
|
+
|
398
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:18
|
399
|
+
WebSocket::Driver::Hybi::FIN = T.let(T.unsafe(nil), Integer)
|
400
|
+
|
401
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:5
|
402
|
+
class WebSocket::Driver::Hybi::Frame
|
403
|
+
# Returns the value of attribute final.
|
404
|
+
#
|
405
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
406
|
+
def final; end
|
407
|
+
|
408
|
+
# Sets the attribute final
|
409
|
+
#
|
410
|
+
# @param value the value to set the attribute final to.
|
411
|
+
#
|
412
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
413
|
+
def final=(_arg0); end
|
414
|
+
|
415
|
+
# Returns the value of attribute length.
|
416
|
+
#
|
417
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
418
|
+
def length; end
|
419
|
+
|
420
|
+
# Sets the attribute length
|
421
|
+
#
|
422
|
+
# @param value the value to set the attribute length to.
|
423
|
+
#
|
424
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
425
|
+
def length=(_arg0); end
|
426
|
+
|
427
|
+
# Returns the value of attribute length_bytes.
|
428
|
+
#
|
429
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
430
|
+
def length_bytes; end
|
431
|
+
|
432
|
+
# Sets the attribute length_bytes
|
433
|
+
#
|
434
|
+
# @param value the value to set the attribute length_bytes to.
|
435
|
+
#
|
436
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
437
|
+
def length_bytes=(_arg0); end
|
438
|
+
|
439
|
+
# Returns the value of attribute masked.
|
440
|
+
#
|
441
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
442
|
+
def masked; end
|
443
|
+
|
444
|
+
# Sets the attribute masked
|
445
|
+
#
|
446
|
+
# @param value the value to set the attribute masked to.
|
447
|
+
#
|
448
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
449
|
+
def masked=(_arg0); end
|
450
|
+
|
451
|
+
# Returns the value of attribute masking_key.
|
452
|
+
#
|
453
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
454
|
+
def masking_key; end
|
455
|
+
|
456
|
+
# Sets the attribute masking_key
|
457
|
+
#
|
458
|
+
# @param value the value to set the attribute masking_key to.
|
459
|
+
#
|
460
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
461
|
+
def masking_key=(_arg0); end
|
462
|
+
|
463
|
+
# Returns the value of attribute opcode.
|
464
|
+
#
|
465
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
466
|
+
def opcode; end
|
467
|
+
|
468
|
+
# Sets the attribute opcode
|
469
|
+
#
|
470
|
+
# @param value the value to set the attribute opcode to.
|
471
|
+
#
|
472
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
473
|
+
def opcode=(_arg0); end
|
474
|
+
|
475
|
+
# Returns the value of attribute payload.
|
476
|
+
#
|
477
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
478
|
+
def payload; end
|
479
|
+
|
480
|
+
# Sets the attribute payload
|
481
|
+
#
|
482
|
+
# @param value the value to set the attribute payload to.
|
483
|
+
#
|
484
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
485
|
+
def payload=(_arg0); end
|
486
|
+
|
487
|
+
# Returns the value of attribute rsv1.
|
488
|
+
#
|
489
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
490
|
+
def rsv1; end
|
491
|
+
|
492
|
+
# Sets the attribute rsv1
|
493
|
+
#
|
494
|
+
# @param value the value to set the attribute rsv1 to.
|
495
|
+
#
|
496
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
497
|
+
def rsv1=(_arg0); end
|
498
|
+
|
499
|
+
# Returns the value of attribute rsv2.
|
500
|
+
#
|
501
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
502
|
+
def rsv2; end
|
503
|
+
|
504
|
+
# Sets the attribute rsv2
|
505
|
+
#
|
506
|
+
# @param value the value to set the attribute rsv2 to.
|
507
|
+
#
|
508
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
509
|
+
def rsv2=(_arg0); end
|
510
|
+
|
511
|
+
# Returns the value of attribute rsv3.
|
512
|
+
#
|
513
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
514
|
+
def rsv3; end
|
515
|
+
|
516
|
+
# Sets the attribute rsv3
|
517
|
+
#
|
518
|
+
# @param value the value to set the attribute rsv3 to.
|
519
|
+
#
|
520
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/frame.rb:6
|
521
|
+
def rsv3=(_arg0); end
|
522
|
+
end
|
523
|
+
|
524
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:15
|
525
|
+
WebSocket::Driver::Hybi::GUID = T.let(T.unsafe(nil), String)
|
526
|
+
|
527
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:23
|
528
|
+
WebSocket::Driver::Hybi::LENGTH = T.let(T.unsafe(nil), Integer)
|
529
|
+
|
530
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:18
|
531
|
+
WebSocket::Driver::Hybi::MASK = T.let(T.unsafe(nil), Integer)
|
532
|
+
|
533
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:53
|
534
|
+
WebSocket::Driver::Hybi::MAX_RESERVED_ERROR = T.let(T.unsafe(nil), Integer)
|
535
|
+
|
536
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:35
|
537
|
+
WebSocket::Driver::Hybi::MESSAGE_OPCODES = T.let(T.unsafe(nil), Array)
|
538
|
+
|
539
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:52
|
540
|
+
WebSocket::Driver::Hybi::MIN_RESERVED_ERROR = T.let(T.unsafe(nil), Integer)
|
541
|
+
|
542
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:5
|
543
|
+
class WebSocket::Driver::Hybi::Message
|
544
|
+
# @return [Message] a new instance of Message
|
545
|
+
#
|
546
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:12
|
547
|
+
def initialize; end
|
548
|
+
|
549
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:20
|
550
|
+
def <<(frame); end
|
551
|
+
|
552
|
+
# Returns the value of attribute data.
|
553
|
+
#
|
554
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
555
|
+
def data; end
|
556
|
+
|
557
|
+
# Sets the attribute data
|
558
|
+
#
|
559
|
+
# @param value the value to set the attribute data to.
|
560
|
+
#
|
561
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
562
|
+
def data=(_arg0); end
|
563
|
+
|
564
|
+
# Returns the value of attribute opcode.
|
565
|
+
#
|
566
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
567
|
+
def opcode; end
|
568
|
+
|
569
|
+
# Sets the attribute opcode
|
570
|
+
#
|
571
|
+
# @param value the value to set the attribute opcode to.
|
572
|
+
#
|
573
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
574
|
+
def opcode=(_arg0); end
|
575
|
+
|
576
|
+
# Returns the value of attribute rsv1.
|
577
|
+
#
|
578
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
579
|
+
def rsv1; end
|
580
|
+
|
581
|
+
# Sets the attribute rsv1
|
582
|
+
#
|
583
|
+
# @param value the value to set the attribute rsv1 to.
|
584
|
+
#
|
585
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
586
|
+
def rsv1=(_arg0); end
|
587
|
+
|
588
|
+
# Returns the value of attribute rsv2.
|
589
|
+
#
|
590
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
591
|
+
def rsv2; end
|
592
|
+
|
593
|
+
# Sets the attribute rsv2
|
594
|
+
#
|
595
|
+
# @param value the value to set the attribute rsv2 to.
|
596
|
+
#
|
597
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
598
|
+
def rsv2=(_arg0); end
|
599
|
+
|
600
|
+
# Returns the value of attribute rsv3.
|
601
|
+
#
|
602
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
603
|
+
def rsv3; end
|
604
|
+
|
605
|
+
# Sets the attribute rsv3
|
606
|
+
#
|
607
|
+
# @param value the value to set the attribute rsv3 to.
|
608
|
+
#
|
609
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi/message.rb:6
|
610
|
+
def rsv3=(_arg0); end
|
611
|
+
end
|
612
|
+
|
613
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:22
|
614
|
+
WebSocket::Driver::Hybi::OPCODE = T.let(T.unsafe(nil), Integer)
|
615
|
+
|
616
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:25
|
617
|
+
WebSocket::Driver::Hybi::OPCODES = T.let(T.unsafe(nil), Hash)
|
618
|
+
|
619
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:34
|
620
|
+
WebSocket::Driver::Hybi::OPCODE_CODES = T.let(T.unsafe(nil), Array)
|
621
|
+
|
622
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:36
|
623
|
+
WebSocket::Driver::Hybi::OPENING_OPCODES = T.let(T.unsafe(nil), Array)
|
624
|
+
|
625
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:55
|
626
|
+
WebSocket::Driver::Hybi::PACK_FORMATS = T.let(T.unsafe(nil), Hash)
|
627
|
+
|
628
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:19
|
629
|
+
WebSocket::Driver::Hybi::RSV1 = T.let(T.unsafe(nil), Integer)
|
630
|
+
|
631
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:20
|
632
|
+
WebSocket::Driver::Hybi::RSV2 = T.let(T.unsafe(nil), Integer)
|
633
|
+
|
634
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:21
|
635
|
+
WebSocket::Driver::Hybi::RSV3 = T.let(T.unsafe(nil), Integer)
|
636
|
+
|
637
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/hybi.rb:14
|
638
|
+
WebSocket::Driver::Hybi::VERSION = T.let(T.unsafe(nil), String)
|
639
|
+
|
640
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:44
|
641
|
+
WebSocket::Driver::MAX_LENGTH = T.let(T.unsafe(nil), Integer)
|
642
|
+
|
643
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:49
|
644
|
+
class WebSocket::Driver::MessageEvent < ::Struct
|
645
|
+
# Returns the value of attribute data
|
646
|
+
#
|
647
|
+
# @return [Object] the current value of data
|
648
|
+
def data; end
|
649
|
+
|
650
|
+
# Sets the attribute data
|
651
|
+
#
|
652
|
+
# @param value [Object] the value to set the attribute data to.
|
653
|
+
# @return [Object] the newly set value
|
654
|
+
#
|
655
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:49
|
656
|
+
def data=(_); end
|
657
|
+
|
658
|
+
class << self
|
659
|
+
def [](*_arg0); end
|
660
|
+
def inspect; end
|
661
|
+
def members; end
|
662
|
+
def new(*_arg0); end
|
663
|
+
end
|
664
|
+
end
|
665
|
+
|
666
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:48
|
667
|
+
class WebSocket::Driver::OpenEvent < ::Struct
|
668
|
+
class << self
|
669
|
+
def [](*_arg0); end
|
670
|
+
def inspect; end
|
671
|
+
def members; end
|
672
|
+
def new(*_arg0); end
|
673
|
+
end
|
674
|
+
end
|
675
|
+
|
676
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:50
|
677
|
+
class WebSocket::Driver::PingEvent < ::Struct
|
678
|
+
# Returns the value of attribute data
|
679
|
+
#
|
680
|
+
# @return [Object] the current value of data
|
681
|
+
def data; end
|
682
|
+
|
683
|
+
# Sets the attribute data
|
684
|
+
#
|
685
|
+
# @param value [Object] the value to set the attribute data to.
|
686
|
+
# @return [Object] the newly set value
|
687
|
+
#
|
688
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:50
|
689
|
+
def data=(_); end
|
690
|
+
|
691
|
+
class << self
|
692
|
+
def [](*_arg0); end
|
693
|
+
def inspect; end
|
694
|
+
def members; end
|
695
|
+
def new(*_arg0); end
|
696
|
+
end
|
697
|
+
end
|
698
|
+
|
699
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:51
|
700
|
+
class WebSocket::Driver::PongEvent < ::Struct
|
701
|
+
# Returns the value of attribute data
|
702
|
+
#
|
703
|
+
# @return [Object] the current value of data
|
704
|
+
def data; end
|
705
|
+
|
706
|
+
# Sets the attribute data
|
707
|
+
#
|
708
|
+
# @param value [Object] the value to set the attribute data to.
|
709
|
+
# @return [Object] the newly set value
|
710
|
+
#
|
711
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:51
|
712
|
+
def data=(_); end
|
713
|
+
|
714
|
+
class << self
|
715
|
+
def [](*_arg0); end
|
716
|
+
def inspect; end
|
717
|
+
def members; end
|
718
|
+
def new(*_arg0); end
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:54
|
723
|
+
class WebSocket::Driver::ProtocolError < ::StandardError; end
|
724
|
+
|
725
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:4
|
726
|
+
class WebSocket::Driver::Proxy
|
727
|
+
include ::WebSocket::Driver::EventEmitter
|
728
|
+
|
729
|
+
# @return [Proxy] a new instance of Proxy
|
730
|
+
#
|
731
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:11
|
732
|
+
def initialize(client, origin, options); end
|
733
|
+
|
734
|
+
# Returns the value of attribute headers.
|
735
|
+
#
|
736
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:9
|
737
|
+
def headers; end
|
738
|
+
|
739
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:51
|
740
|
+
def parse(chunk); end
|
741
|
+
|
742
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:33
|
743
|
+
def set_header(name, value); end
|
744
|
+
|
745
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:39
|
746
|
+
def start; end
|
747
|
+
|
748
|
+
# Returns the value of attribute status.
|
749
|
+
#
|
750
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:9
|
751
|
+
def status; end
|
752
|
+
end
|
753
|
+
|
754
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/proxy.rb:7
|
755
|
+
WebSocket::Driver::Proxy::PORTS = T.let(T.unsafe(nil), Hash)
|
756
|
+
|
757
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:45
|
758
|
+
WebSocket::Driver::STATES = T.let(T.unsafe(nil), Array)
|
759
|
+
|
760
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:4
|
761
|
+
class WebSocket::Driver::Server < ::WebSocket::Driver
|
762
|
+
# @return [Server] a new instance of Server
|
763
|
+
#
|
764
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:7
|
765
|
+
def initialize(socket, options = T.unsafe(nil)); end
|
766
|
+
|
767
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
768
|
+
def add_extension(*args, &block); end
|
769
|
+
|
770
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
771
|
+
def binary(*args, &block); end
|
772
|
+
|
773
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
774
|
+
def close(*args, &block); end
|
775
|
+
|
776
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:13
|
777
|
+
def env; end
|
778
|
+
|
779
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
780
|
+
def frame(*args, &block); end
|
781
|
+
|
782
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:43
|
783
|
+
def parse(chunk); end
|
784
|
+
|
785
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
786
|
+
def ping(*args, &block); end
|
787
|
+
|
788
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:38
|
789
|
+
def protocol; end
|
790
|
+
|
791
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
792
|
+
def set_header(*args, &block); end
|
793
|
+
|
794
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
795
|
+
def start(*args, &block); end
|
796
|
+
|
797
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:27
|
798
|
+
def text(*args, &block); end
|
799
|
+
|
800
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:17
|
801
|
+
def url; end
|
802
|
+
|
803
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:38
|
804
|
+
def version; end
|
805
|
+
|
806
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:60
|
807
|
+
def write(buffer); end
|
808
|
+
|
809
|
+
private
|
810
|
+
|
811
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:66
|
812
|
+
def fail_request(message); end
|
813
|
+
|
814
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:71
|
815
|
+
def open; end
|
816
|
+
end
|
817
|
+
|
818
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/server.rb:5
|
819
|
+
WebSocket::Driver::Server::EVENTS = T.let(T.unsafe(nil), Array)
|
820
|
+
|
821
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:4
|
822
|
+
class WebSocket::Driver::StreamReader
|
823
|
+
# @return [StreamReader] a new instance of StreamReader
|
824
|
+
#
|
825
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:8
|
826
|
+
def initialize; end
|
827
|
+
|
828
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:30
|
829
|
+
def each_byte; end
|
830
|
+
|
831
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:13
|
832
|
+
def put(chunk); end
|
833
|
+
|
834
|
+
# Read bytes from the data:
|
835
|
+
#
|
836
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:19
|
837
|
+
def read(length); end
|
838
|
+
|
839
|
+
private
|
840
|
+
|
841
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:41
|
842
|
+
def prune; end
|
843
|
+
end
|
844
|
+
|
845
|
+
# Try to minimise the number of reallocations done:
|
846
|
+
#
|
847
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver/stream_reader.rb:6
|
848
|
+
WebSocket::Driver::StreamReader::MINIMUM_AUTOMATIC_PRUNE_OFFSET = T.let(T.unsafe(nil), Integer)
|
849
|
+
|
850
|
+
# source://websocket-driver-0.7.5/lib/websocket/driver.rb:55
|
851
|
+
class WebSocket::Driver::URIError < ::ArgumentError; end
|
852
|
+
|
853
|
+
# source://websocket-driver-0.7.5/lib/websocket/http.rb:2
|
854
|
+
module WebSocket::HTTP
|
855
|
+
class << self
|
856
|
+
# source://websocket-driver-0.7.5/lib/websocket/http.rb:10
|
857
|
+
def normalize_header(name); end
|
858
|
+
end
|
859
|
+
end
|
860
|
+
|
861
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:4
|
862
|
+
module WebSocket::HTTP::Headers
|
863
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:40
|
864
|
+
def initialize; end
|
865
|
+
|
866
|
+
# @return [Boolean]
|
867
|
+
#
|
868
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:47
|
869
|
+
def complete?; end
|
870
|
+
|
871
|
+
# @return [Boolean]
|
872
|
+
#
|
873
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:51
|
874
|
+
def error?; end
|
875
|
+
|
876
|
+
# Returns the value of attribute headers.
|
877
|
+
#
|
878
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:38
|
879
|
+
def headers; end
|
880
|
+
|
881
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:55
|
882
|
+
def parse(chunk); end
|
883
|
+
|
884
|
+
private
|
885
|
+
|
886
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:84
|
887
|
+
def complete; end
|
888
|
+
|
889
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:88
|
890
|
+
def error; end
|
891
|
+
|
892
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:92
|
893
|
+
def header_line(line); end
|
894
|
+
|
895
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:106
|
896
|
+
def string_buffer; end
|
897
|
+
end
|
898
|
+
|
899
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:6
|
900
|
+
WebSocket::HTTP::Headers::CR = T.let(T.unsafe(nil), Integer)
|
901
|
+
|
902
|
+
# RFC 2616 grammar rules:
|
903
|
+
#
|
904
|
+
# CHAR = <any US-ASCII character (octets 0 - 127)>
|
905
|
+
#
|
906
|
+
# CTL = <any US-ASCII control character
|
907
|
+
# (octets 0 - 31) and DEL (127)>
|
908
|
+
#
|
909
|
+
# SP = <US-ASCII SP, space (32)>
|
910
|
+
#
|
911
|
+
# HT = <US-ASCII HT, horizontal-tab (9)>
|
912
|
+
#
|
913
|
+
# token = 1*<any CHAR except CTLs or separators>
|
914
|
+
#
|
915
|
+
# separators = "(" | ")" | "<" | ">" | "@"
|
916
|
+
# | "," | ";" | ":" | "\" | <">
|
917
|
+
# | "/" | "[" | "]" | "?" | "="
|
918
|
+
# | "{" | "}" | SP | HT
|
919
|
+
#
|
920
|
+
# Or, as redefined in RFC 7230:
|
921
|
+
#
|
922
|
+
# token = 1*tchar
|
923
|
+
#
|
924
|
+
# tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
925
|
+
# / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"
|
926
|
+
# / DIGIT / ALPHA
|
927
|
+
# ; any VCHAR, except delimiters
|
928
|
+
#
|
929
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:36
|
930
|
+
WebSocket::HTTP::Headers::HEADER_LINE = T.let(T.unsafe(nil), Regexp)
|
931
|
+
|
932
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:7
|
933
|
+
WebSocket::HTTP::Headers::LF = T.let(T.unsafe(nil), Integer)
|
934
|
+
|
935
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/headers.rb:5
|
936
|
+
WebSocket::HTTP::Headers::MAX_LINE_LENGTH = T.let(T.unsafe(nil), Integer)
|
937
|
+
|
938
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:4
|
939
|
+
class WebSocket::HTTP::Request
|
940
|
+
include ::WebSocket::HTTP::Headers
|
941
|
+
|
942
|
+
# Returns the value of attribute env.
|
943
|
+
#
|
944
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:11
|
945
|
+
def env; end
|
946
|
+
|
947
|
+
private
|
948
|
+
|
949
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:29
|
950
|
+
def complete; end
|
951
|
+
|
952
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:15
|
953
|
+
def start_line(line); end
|
954
|
+
end
|
955
|
+
|
956
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:7
|
957
|
+
WebSocket::HTTP::Request::REQUEST_LINE = T.let(T.unsafe(nil), Regexp)
|
958
|
+
|
959
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:8
|
960
|
+
WebSocket::HTTP::Request::REQUEST_TARGET = T.let(T.unsafe(nil), Regexp)
|
961
|
+
|
962
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/request.rb:9
|
963
|
+
WebSocket::HTTP::Request::RESERVED_HEADERS = T.let(T.unsafe(nil), Array)
|
964
|
+
|
965
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:4
|
966
|
+
class WebSocket::HTTP::Response
|
967
|
+
include ::WebSocket::HTTP::Headers
|
968
|
+
|
969
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:11
|
970
|
+
def [](name); end
|
971
|
+
|
972
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:15
|
973
|
+
def body; end
|
974
|
+
|
975
|
+
# Returns the value of attribute code.
|
976
|
+
#
|
977
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:9
|
978
|
+
def code; end
|
979
|
+
|
980
|
+
private
|
981
|
+
|
982
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:21
|
983
|
+
def start_line(line); end
|
984
|
+
end
|
985
|
+
|
986
|
+
# source://websocket-driver-0.7.5/lib/websocket/http/response.rb:7
|
987
|
+
WebSocket::HTTP::Response::STATUS_LINE = T.let(T.unsafe(nil), Regexp)
|
988
|
+
|
989
|
+
module WebSocket::Mask
|
990
|
+
class << self
|
991
|
+
def mask(_arg0, _arg1); end
|
992
|
+
end
|
993
|
+
end
|