-
Notifications
You must be signed in to change notification settings - Fork 0
WebSockets\Server
AlMA PRO LEADER edited this page Oct 19, 2018
·
3 revisions
This class uses:
\Ratchet\Server\IoServer
\Ratchet\Http\HttpServer
\Ratchet\WebSocket\WsServer
to create a WebSockets server.
This function initiates the WebSockets server.
It accepts a required argument which is the server port, and an optional argument which is the binding address.
By default, the binding address is 127.0.0.1
.
This function runs the WebSockets server after it's been initialized.