Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Socket Close Abnormally 1006 #47

Open
sonawanesarvesh opened this issue Apr 17, 2021 · 9 comments
Open

Socket Close Abnormally 1006 #47

sonawanesarvesh opened this issue Apr 17, 2021 · 9 comments

Comments

@sonawanesarvesh
Copy link

sonawanesarvesh commented Apr 17, 2021

Hello,
I followed your deployment instruction on one web server, but I am getting this error

WebSocket connection to 'wss://myIP:8080/' failed:
We have received an error! Event {isTrusted: true, type: "error", target: WebSocket, currentTarget: WebSocket, eventPhase: 2, …}
Connection closed with event code 1006 => The connection was closed abnormally, e.g., without sending or receiving a Close control frame

@johnnymast
Copy link
Owner

Hi there,

I am sorry for my late response. Are you running the server script in the background?

@LP233
Copy link

LP233 commented Apr 21, 2021

I'm also getting same error
terminal
front

@johnnymast
Copy link
Owner

Allright boys, let me check it out.

@johnnymast
Copy link
Owner

Hi guys,

I see that you guys are using wss:// (secure) but the 1.4 version does not support SSL (yet). The upcoming milestone (1.5 Add more security to the chats) will feature SSL and docker support for the project. You can follow the link to track the progress.

@sonawanesarvesh
Copy link
Author

Hello, thanks for the updates, but I see no latest comments on #8

is it stalled since long? is there any hopes to see updates in some days (not in weeks :) )

@johnnymast
Copy link
Owner

That's right it's a ticket I added for the v1.5 milestone. I have 98 repo's to maintain so I didn't come to it (yet) but since yesterday I have been working on the 1.5 branch again. If you wish to help, all help is welcome :)

@sonawanesarvesh
Copy link
Author

@johnnymast
Copy link
Owner

Hi sonawanesarvesh,

I can't really tell because mysql_websocket_chat uses a third-party WebSocket server and I don't know what it does in its core. But for version 1.5 I am adding certs creator to the package.

https://github.com/johnnymast/mysql_websocket_chat/blob/v1.5/ssl/cert.php

Maybe if you have certs you know are 100% valid you could help me test version 1.5 before release. You can do so by updating this line in the server https://github.com/johnnymast/mysql_websocket_chat/blob/v1.5/server.php#L9 and enable SSL support here https://github.com/johnnymast/mysql_websocket_chat/blob/v1.5/includes/config.php#L25 (Don't forget to download the 1.5 branch the other branches/versions don't have this option.

@johnnymast
Copy link
Owner

@sonawanesarvesh I have the solution but I can not work with the version of mysql_websocket_chat you work with now. Really soon I will release 1.5 pre-release with SSL support. I had to debug Ratched WebSockets head to toe to see why it doesn't like SSL in 1.5. This took a while but I got it done now. Expect a pre-release + youtube video soon to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants