Search found 49 matches
- 21 Dec 2023, 08:48
- Forum: SFS2X Questions
- Topic: Variable Updates not received after Room Name Change
- Replies: 5
- Views: 61559
Re: Variable Updates not received after Room Name Change
The only difference to that sequence in my code is that there is no sending of an extension request. The room name change is triggered by the user joining the room where there are various forks in the handler dealing with choice of game (hence the room rename). I will put some detailed sequence toge...
- 20 Dec 2023, 19:10
- Forum: SFS2X Questions
- Topic: Variable Updates not received after Room Name Change
- Replies: 5
- Views: 61559
Re: Variable Updates not received after Room Name Change
No specifically User Variables
- 18 Dec 2023, 17:57
- Forum: SFS2X Questions
- Topic: Variable Updates not received after Room Name Change
- Replies: 5
- Views: 61559
Variable Updates not received after Room Name Change
So this is a bit of a mystery! If I change the name of a room after a user has joined it, any user variables for that user which are changed on the server side are not received by the javascript client. If another user joins the room after the room name change then the user variable changes are rece...
- 22 Sep 2023, 15:26
- Forum: SFS2X HTML5 / JavaScript API
- Topic: putUtfString strips characters from string
- Replies: 5
- Views: 9446
Re: putUtfString strips characters from string
I did a console.log(sParams.getDump()) before sending to server
- 22 Sep 2023, 14:28
- Forum: SFS2X HTML5 / JavaScript API
- Topic: putUtfString strips characters from string
- Replies: 5
- Views: 9446
Re: putUtfString strips characters from string
Someone will paste the text of a json into a textarea and the value of that textarea is sent to the server. I have checked and the value of the text area is extracted correctly but .putUtfString into an object strips the curly braces.
- 22 Sep 2023, 08:16
- Forum: SFS2X HTML5 / JavaScript API
- Topic: putUtfString strips characters from string
- Replies: 5
- Views: 9446
putUtfString strips characters from string
When I try to add the text string of a json to an SFSObject, the curly braces are stripped from both ends. How can I send a stringified json (actually the value of a textarea) from html5 client to server?
- 28 Mar 2022, 10:23
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Multiple Client instances
- Replies: 1
- Views: 6606
Multiple Client instances
If a javascript client is running multiple instances of SFS to connect to multiple servers, is it possible to identify the specific instance from within the callback from an event listener. By example if I have 2 instances: function someMethod() { sfs1 = new SFS2X.SmartFox(config1); sfs1.addEventLis...
- 11 Mar 2021, 16:15
- Forum: SFS2X Questions
- Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
- Replies: 12
- Views: 20996
Re: Server will auto-shutdown / fresh install on fresh system (vps server))
solved by doing clean install and then manually re-constituting the config/server.xml Copying the server.xml file from the earlier version causes the problem (not sure which parts) So to be clear when upgrading from jetty version to tomcat version 1. you can create a new version in a new directory a...
- 11 Mar 2021, 08:39
- Forum: SFS2X Questions
- Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
- Replies: 12
- Views: 20996
Re: Server will auto-shutdown / fresh install on fresh system (vps server))
As stated above, there is no other instance of SFS running. Have tested with ./sfs2x-service status in both old and new directories and the daemon is reported as stopped in both cases. There is no shell instance running either sudo netstat -anp tcp | grep 8443 give no result when sfs is stopped and ...
- 10 Mar 2021, 18:00
- Forum: SFS2X Questions
- Topic: Server will auto-shutdown / fresh install on fresh system (vps server))
- Replies: 12
- Views: 20996
Re: Server will auto-shutdown / fresh install on fresh system (vps server))
Having the same problem but with migration from 2.13 to 2.17 (Tomcat). Client will be using websockets / HTML5 javascript. There are no other instances of SFS or tomcat running. 1) Fresh install into new directory and old directory renamed. 2) Configuration files files copied to new locations as per...
- 14 Oct 2020, 12:11
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Cyrillic utfString problems
- Replies: 4
- Views: 11679
Re: Cyrillic utfString problems
client api update to 1.7.17 did the trick
Thank you
Thank you
- 14 Oct 2020, 08:39
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Cyrillic utfString problems
- Replies: 4
- Views: 11679
Re: Cyrillic utfString problems
We are using SmartFoxServer 2X (2.13.0) Javascript api 1.7.4 sendMessage: function () { if ($("#chatTextInput").val().length > 0) { controlPanel.buttonSound.play(); var sParams = new SFS2X.SFSObject(); sParams.putUtfString("playerFunction", "chat"); sParams.putUtfString...
- 13 Oct 2020, 17:04
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Cyrillic utfString problems
- Replies: 4
- Views: 11679
Cyrillic utfString problems
Sending cyrillic text string by putting a utfString into an ISFSObject causes a server error on receipt at the server end. It works fine with latin (english) text and it works find sending the same cyrillic message from server to client. But when the message is sent client to server the following tr...
- 09 May 2019, 05:41
- Forum: SFS2X Questions
- Topic: Stop the login process
- Replies: 6
- Views: 9672
Re: Stop the login process
Bit of an old thread but I am seeing the same behaviour To test I have set the login handler to always throw a simple login exception with no additional code SFSErrorData errData = new SFSErrorData(SFSErrorCode.LOGIN_BAD_PASSWORD); try { throw new SFSLoginException("authentication failed",...
- 03 May 2019, 07:19
- Forum: SFS2X iPhone / iPad / OSX API
- Topic: Swift IOS examples
- Replies: 2
- Views: 9001
Re: Swift IOS examples
Thanks, that worked perfectly