Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add config for handshake
  • Loading branch information
killtw committed Jun 11, 2019
commit cfd9f903a66fe4e4b975b733338bb3ea95803908
11 changes: 11 additions & 0 deletions config/swoole_websocket.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@
// SwooleTW\Http\Websocket\Middleware\Authenticate::class,
],

/*
|--------------------------------------------------------------------------
| Websocket handler for onHandShake callback
| If enable, onOpen would not be triggered
|--------------------------------------------------------------------------
*/
'handshake' => [
'enabled' => false,
'handler' => SwooleTW\Http\Websocket\HandShakeHandler::class,
],

/*
|--------------------------------------------------------------------------
| Default websocket driver
Expand Down