We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a069490 commit 7a28874Copy full SHA for 7a28874
lib/async/websocket/connection.rb
@@ -42,6 +42,10 @@ def reusable?
42
end
43
44
attr :protocol
45
+
46
+ def inspect
47
+ "#<#{self.class} state=#{@state}>"
48
+ end
49
50
51
test/async/websocket/server.rb
@@ -19,6 +19,8 @@
19
message = connection.read
20
expect(message.to_str).to be == "Hello World!"
21
22
+ connection.shutdown
23
+ ensure
24
connection.close
25
26
@@ -27,6 +29,8 @@
27
29
connection.send_text("Hello World!")
28
30
31
32
33
34
35
36
@@ -36,6 +40,8 @@
40
37
41
38
39
0 commit comments