SND-KNN

Results 8 comments of SND-KNN

> Well, I never see this before 👀 > > Have you tried with newer versions of Laravel? Not yet, but I'll try when I'm free.

> Thanks for your help! I tried, still the same. These are I installed version PHP Version 7.3.12 Swoole Version 4.5.10 Laravel Version 8.20.1 swooletw/laravel-swoole v2.6.68

> you should use a client with a socket.io implemention, [socket.io-client](https://github.com/socketio/socket.io-client), as the ws server is compatible with socket.io 2.x by default OK, I'll try it later.

> you should use a client with a socket.io implemention, [socket.io-client](https://github.com/socketio/socket.io-client), as the ws server is compatible with socket.io 2.x by default I tried and blocked by CORS policy. I...

I tried all I can do. middleware、nginx、your [example](https://github.com/swooletw/laravel-swoole/wiki/9.-Nginx-Configuration) all failed. : (

OK, I tried. It does work. But I can't receive message event and custom event. I just saw "Connected." msg. ```php // server Websocket::on('connect', function ($websocket, Request $request) { //...

It is still connected till I disconnect it. I'll try socket.io client tool when I am free. thx~

I found the problem. When I added the option (see below), It did work correctly Summary 1. It should use socket.io client v2.x 2. Connection options should add "transports" setting...