Hello,
I'm having trouble with a JavaScript error, anytime I try to connect to SmartFoxServer from my server which has a valid, custom ssl certificate installed, I'm getting the follow error:
The page at 'domainhere' was loaded over HTTPS, but attempted to connect to the insecure WebSocket endpoint 'ws://domainhere:8080/BlueBox/websocket'. This request has been blocked; this endpoint must be available over WSS.
Like I said my certificate is working and is valid, not sure what's going on here...
"Blank" was loaded over https but...
-
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Re: "Blank" was loaded over https but...
You have to make the API use WSS to connect.
In order to do this, in the configuration object you pass to the SmartFox constructor, set the useSSL parameter to true.
http://docs2x.smartfoxserver.com/api-do ... rtFox.html
In order to do this, in the configuration object you pass to the SmartFox constructor, set the useSSL parameter to true.
http://docs2x.smartfoxserver.com/api-do ... rtFox.html
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
-
- Posts: 204
- Joined: 22 Sep 2013, 23:33
Re: "Blank" was loaded over https but...
Bax wrote:You have to make the API use WSS to connect.
In order to do this, in the configuration object you pass to the SmartFox constructor, set the useSSL parameter to true.
http://docs2x.smartfoxserver.com/api-do ... rtFox.html
Ah, simple error. Thanks Bax!
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 29 guests