server version question
-
- Posts: 5
- Joined: 14 Jul 2016, 03:29
server version question
Our company's server version is 2.8.5, so we'd like to know if the sf2X version must be higher than 2.9 to support html5 client or websocket?
Re: server version question
Yes,
Websockets is supported since version 2.3.x
cheers
Websockets is supported since version 2.3.x
cheers
-
- Posts: 5
- Joined: 14 Jul 2016, 03:29
Re: server version question
Lapo wrote:Yes,
Websockets is supported since version 2.3.x
cheers
hi,you mean that we must update to 2.9.x to support html5 client?
Re: server version question
No.
Version 2.3 is when we started supporting HTML5 websocket. Your run 2.8.
2.8 > 2.3
So, no problem
Version 2.3 is when we started supporting HTML5 websocket. Your run 2.8.
2.8 > 2.3
So, no problem
-
- Posts: 5
- Joined: 14 Jul 2016, 03:29
Re: server version question
Lapo wrote:No.
Version 2.3 is when we started supporting HTML5 websocket. Your run 2.8.
2.8 > 2.3
So, no problem
In version 2.8.5 I found it only has the first three options,this is not a problem yet?
and I use the h5 client api to connect server , it always error as below.
"WebSocket connection to 'ws://mydomain.com:9871/websocket' failed: Connection closed before receiving a handshake response".
is it means the client and the server are Inappropriate?
Re: server version question
I am not sure I understand. The error talks about port 9871 but the server config shows port 8888.
Looks like you're connecting to the wrong port...
Support for secure web sockets has been added in 2.9
Looks like you're connecting to the wrong port...
Support for secure web sockets has been added in 2.9
-
- Posts: 5
- Joined: 14 Jul 2016, 03:29
Re: server version question
Lapo wrote:I am not sure I understand. The error talks about port 9871 but the server config shows port 8888.
Looks like you're connecting to the wrong port...
Support for secure web sockets has been added in 2.9
sorry that pic is the example in your website.http://docs2x.smartfoxserver.com/GettingStarted/web-sockets
and I have some questions:
1. Can I use the html5 client API without the secure web sockets?
Yes
2. Why can't we connect to WebSocket? Is the version too old or because of the secure web sockets?
We need more details to be able to reply.
For example are you sure the server port is reachable? If a firewall is blocking the traffic you won't be able to connect. You can verify by telnetting the server on the target port.
3. Is there anything else that could happen if we haven't got the secure web sockets?
I am not sure what you mean.
If you want we can run a connection test from here. Send us your server's IP address, if it's reachable online. You can send me a PM or an email to support@...
thanks
-
- Posts: 5
- Joined: 14 Jul 2016, 03:29
Re: server version question
endless30000 wrote:Lapo wrote:I am not sure I understand. The error talks about port 9871 but the server config shows port 8888.
Looks like you're connecting to the wrong port...
Support for secure web sockets has been added in 2.9
sorry that pic is the example in your website.http://docs2x.smartfoxserver.com/GettingStarted/web-sockets
and I have some questions:1. Can I use the html5 client API without the secure web sockets?
Yes2. Why can't we connect to WebSocket? Is the version too old or because of the secure web sockets?
We need more details to be able to reply.
For example are you sure the server port is reachable? If a firewall is blocking the traffic you won't be able to connect. You can verify by telnetting the server on the target port.3. Is there anything else that could happen if we haven't got the secure web sockets?
I am not sure what you mean.
If you want we can run a connection test from here. Send us your server's IP address, if it's reachable online. You can send me a PM or an email to support@...
thanks
hi I set up a new server with the 2.9 version , the html5 api can connect successful, so I think if I use the old version of Html5 client api, I can slove the problem, so where can I download the old version api?
Re: server version question
The fact that you are having problems connecting has nothing to do with what version you're using.
Let's try to solve this issue, shall we?
First question: are you testing locally or remotely? If your server is online send us the IP address via email or PM so we can understand where the problem is.
thanks
Let's try to solve this issue, shall we?
First question: are you testing locally or remotely? If your server is online send us the IP address via email or PM so we can understand where the problem is.
thanks
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 37 guests