Class OriginCheck
A middleware to ensure JavaScript clients connecting are from the expected domain. This protects other websites from open WebSocket connections to your application. Note: This can be spoofed from non-web browser clients
- Ratchet\Http\OriginCheck implements Ratchet\Http\HttpServerInterface uses Ratchet\Http\CloseResponseTrait
public
|
|
public
|
|
public
|
#
onMessage(
Triggered when a client sends data through the socket |
public
|
#
onClose(
This is called before or after a socket is closed (depends on how it's closed). SendMessage to $conn will not result in an error if it has already been closed. |
public
|
#
onError(
If there is an error with one of the sockets, or somewhere in the application where an Exception is thrown, the Exception is sent back down the stack, handled by the Server and bubbled back up the application through this method |
protected
|
$_component | |
|
public
array
|
$allowedOrigins | [] |