Websocket at the end of URL. wss connection problem with the server

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

suresh123
Posts: 4
Joined: 14 Jun 2021, 18:05

Websocket at the end of URL. wss connection problem with the server

Postby suresh123 » 14 Jun 2021, 18:14

Dear Concerned,

The thing is we have a sf2x configured with SSL,and the SSL is working fine.
But when we try to connect the server using WEBGL build we get this error on google chrome
WebSocket connection to 'wss://stickythirteen.co.uk:8443/websocket' failed:
_SocketCreate @ Files.framework.js.gz:2

We tried lot of stuff but were not able to connect to the server.
Any ideas plz suggest.

Thanks,
SureshKumar
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Websocket at the end of URL. wss connection problem with the server

Postby Lapo » 15 Jun 2021, 07:28

Hi,
the HTTP SFS2X welcome page is reachable and the SSL is active.
Can you tell me the name of the Zone you're using for logging in?

We'll test a connection from here and let you know.

Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Websocket at the end of URL. wss connection problem with the server

Postby Lapo » 15 Jun 2021, 09:30

Update:
I was able to test with your server and I got a hunch: I think you inadvertently removed one or more config files from the Tomcat libraries.

Under your installation folder, inside SFS2X/lib/apache-tomcat/ there is a folder called Catalina/
Inside that folder there should be another folder called localhost with a single file called rewrite.config

Is it possible you have removed that folder/file?

Let us know
Lapo

--

gotoAndPlay()

...addicted to flash games
suresh123
Posts: 4
Joined: 14 Jun 2021, 18:05

Re: Websocket at the end of URL. wss connection problem with the server

Postby suresh123 » 17 Jun 2021, 09:23

Dear Sir,

Thanks for the reply.We made the changes to the server.Now the SSL is working fine.
We are getting this error now "[SFS - ERROR] [WebSocketLayer] Communication error: Disconnected " on the client unity side for WebGL
build.Any ideas suggestion is hugeky welcomed.



Thanks,
SureshKumar
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Websocket at the end of URL. wss connection problem with the server

Postby Lapo » 17 Jun 2021, 11:22

Please show us the code you are using for the connection
Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games
User avatar
Lapo
Site Admin
Posts: 22999
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Websocket at the end of URL. wss connection problem with the server

Postby Lapo » 17 Jun 2021, 12:41

Update: we have tested connecting to your server via WebGL/SSL and it works fine. So it seems any issues with the server side was solved.

Cheers
Lapo

--

gotoAndPlay()

...addicted to flash games
suresh123
Posts: 4
Joined: 14 Jun 2021, 18:05

Re: Websocket at the end of URL. wss connection problem with the server

Postby suresh123 » 17 Jun 2021, 16:32

Dear Lapo,

Thanks for checking the connection.
Yes the problem is resolved. Replaced server.xml and made some changes to the unity code.
Now the wss websocket connection with server for WebGL build is working fine.
Thanks for your time.

Thanks,
SureshKumar

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 38 guests