Skip to content

Commit

Permalink
add server type option on before server start.
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 14, 2018
1 parent 4c940b7 commit 53c44c1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/WebSocketServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public function initSettings(array $settings)
*/
public function start()
{
// add server type
$this->serverSetting['server_type'] = self::TYPE_WS;

if (!empty($this->setting['open_http2_protocol'])) {
$this->wsSettings['type'] = SWOOLE_SOCK_TCP | SWOOLE_SSL;
}
Expand Down

0 comments on commit 53c44c1

Please sign in to comment.