Changeset View
Changeset View
Standalone View
Standalone View
src/config/swoole_websocket.php
Show All 24 Lines | return [ | ||||
'route_file' => base_path('routes/websocket.php'), | 'route_file' => base_path('routes/websocket.php'), | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Default middleware for on connect request | | Default middleware for on connect request | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
*/ | */ | ||||
'middleware' => [ | 'middleware' => [ | ||||
// SwooleTW\Http\Websocket\Middleware\DecryptCookies::class, | SwooleTW\Http\Websocket\Middleware\DecryptCookies::class, | ||||
// SwooleTW\Http\Websocket\Middleware\StartSession::class, | SwooleTW\Http\Websocket\Middleware\StartSession::class, | ||||
// SwooleTW\Http\Websocket\Middleware\Authenticate::class, | SwooleTW\Http\Websocket\Middleware\Authenticate::class, | ||||
], | ], | ||||
/* | /* | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
| Websocket handler for customized onHandShake callback | | Websocket handler for customized onHandShake callback | ||||
|-------------------------------------------------------------------------- | |-------------------------------------------------------------------------- | ||||
*/ | */ | ||||
'handshake' => [ | 'handshake' => [ | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |