Laravel-swoole: Socket.io routes being registered even when Websockets disabled

Created on 23 May 2018  ·  3Comments  ·  Source: swooletw/laravel-swoole

Please answer these questions before submitting your issue. Thanks!

  1. Please provide your PHP and Swoole version. (php -v and php --ri swoole)
php -v
PHP 7.2.4 (cli) (built: Apr 12 2018 02:49:37) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.4, Copyright (c) 1999-2018, by Zend Technologies
php --ri swoole

swoole

swoole support => enabled
Version => 1.10.5
Author => tianfeng.han[email: [email protected]]
kqueue => enabled
rwlock => enabled
async http/websocket client => enabled
http2 => enabled
pcre => enabled
zlib => enabled
  1. Please provide your Laravel/Lumen version.
    Laravel 5.6.17

  2. Which release version of this package are you using?
    2.3.8

  3. What did you do? If possible, provide a recipe for reproducing the error.
    Set SWOOLE_HTTP_WEBSOCKET in .env to false.

  4. What did you expect to see?
    /socket.io routes not to be registered

  5. What did you see instead?
    /socket.io routes being registered.

enhancement suggestion

Most helpful comment

Hi @benpoulson ,

Thanks for your reporting, I will make it not require socket.io routes if websocket mode is off in the next release.

All 3 comments

Hi @benpoulson ,

Thanks for your reporting, I will make it not require socket.io routes if websocket mode is off in the next release.

@albertcht Thanks for the quick response!
And thanks for all the great work you've put into this project. :) You're really helping the Laravel community with this!

Hi @benpoulson ,

This feature has been added in release v2.3.9. You can go check it out.

Was this page helpful?
0 / 5 - 0 ratings