@@ -61,46 +61,6 @@ public function getCloseStatus(): ?int
61
61
return $ this ->close_status ;
62
62
}
63
63
64
- /**
65
- * Convenience method to send text message
66
- * @param string $payload Content as string
67
- */
68
- public function text (string $ payload ): void
69
- {
70
- $ message = $ this ->msg_factory ->create ('text ' , $ payload );
71
- $ this ->pushMessage ($ message );
72
- }
73
-
74
- /**
75
- * Convenience method to send binary message
76
- * @param string $payload Content as binary string
77
- */
78
- public function binary (string $ payload ): void
79
- {
80
- $ message = $ this ->msg_factory ->create ('binary ' , $ payload );
81
- $ this ->pushMessage ($ message );
82
- }
83
-
84
- /**
85
- * Convenience method to send ping
86
- * @param string $payload Optional text as string
87
- */
88
- public function ping (string $ payload = '' ): void
89
- {
90
- $ message = $ this ->msg_factory ->create ('ping ' , $ payload );
91
- $ this ->pushMessage ($ message );
92
- }
93
-
94
- /**
95
- * Convenience method to send unsolicited pong
96
- * @param string $payload Optional text as string
97
- */
98
- public function pong (string $ payload = '' ): void
99
- {
100
- $ message = $ this ->msg_factory ->create ('pong ' , $ payload );
101
- $ this ->pushMessage ($ message );
102
- }
103
-
104
64
/**
105
65
* Tell the socket to close.
106
66
*
@@ -357,11 +317,6 @@ private function autoRespond(array $frame)
357
317
358
318
/* ---------- Stream I/O methods ------------------------------------------------- */
359
319
360
- public function getStream ()
361
- {
362
- return $ this ->isConnected () ? $ this ->stream : null ;
363
- }
364
-
365
320
/**
366
321
* Close connection stream.
367
322
* @return bool
0 commit comments