Search found 34 matches

by Rob
30 Jul 2019, 10:51
Forum: SFS2X HTML5 / JavaScript API
Topic: Missing code completion
Replies: 5
Views: 382

Re: Missing code completion

I'm pretty sure IntelliSense doesn't require type definitions to work. Granted, type info is really good to have and will expand the code suggestions so I'm all for adding that! But even without type definitions it should be possible to get basic things like method name suggestions. We get code comp...
by Rob
29 Jul 2019, 17:00
Forum: SFS2X HTML5 / JavaScript API
Topic: Missing code completion
Replies: 5
Views: 382

Missing code completion

For some reason I'm not getting IntelliSense working for the smartfox API when using the client npm package. All other installed npm packages work fine and give me code completion, so I suspect it has something to do with how it's packaged. I'm using IntelliJ IDEA, but I also tried it in VSCode and ...
by Rob
02 Jul 2019, 16:15
Forum: SFS2X HTML5 / JavaScript API
Topic: Return value documentation errors
Replies: 5
Views: 473

Re: Return value documentation errors

Yeah, I wouldn't use === like that. I would use something like if (!usr) { ... } it was just an example of what might happen with the current documentation.
by Rob
02 Jul 2019, 13:19
Forum: SFS2X HTML5 / JavaScript API
Topic: Return value documentation errors
Replies: 5
Views: 473

Re: Return value documentation errors

While both null and undefined are falsy values in Javascript they are not the same. So if the developer assumes null is what indicates an error, something like this could happen:

Code: Select all

const usr = myRoom.getUserById(x);
if (usr === null) {
   // Handle error
} else {
   // Assume all is OK
}
by Rob
02 Jul 2019, 08:14
Forum: SFS2X HTML5 / JavaScript API
Topic: Return value documentation errors
Replies: 5
Views: 473

Return value documentation errors

There are several places in the documentation where functions are listed as returning null, when they in fact return undefined.
This will obviously cause bugs if a developer explicitly checks for null.

Examples are the getUserById & getUserByName functions.
by Rob
21 Jun 2019, 08:12
Forum: SmartFoxServer 1.x Discussions and Help
Topic: need help in "bList"
Replies: 14
Views: 451

Re: need help in "bList"

That sure looks like code related to the Cocolani Island MMO, and it's not open source afaik. It's listed at the SmartFox Showcase page.
by Rob
04 Jun 2019, 14:33
Forum: SFS2X Questions
Topic: Suggestion: customize initial roomlist
Replies: 3
Views: 110

Re: Suggestion: customize initial roomlist

Yes, that's what I'm currently doing. But that leads to multiple ROOM_GROUP_SUBSCRIBE events having to be sent to the user after processing the login. My suggestion was to add functionality to the custom login to subscribe the user to those groups immediately on login so that the LOGIN response will...
by Rob
04 Jun 2019, 09:47
Forum: SFS2X Questions
Topic: Suggestion: customize initial roomlist
Replies: 3
Views: 110

Suggestion: customize initial roomlist

Could there be a way in a custom login to populate the initial roomlist with specific room groups? At the moment there's no way to specify what room groups individual users subscribes to. There's only the global "Default Room Groups" setting which applies to all users. At the moment, we ha...
by Rob
04 May 2019, 19:36
Forum: SFS2X Questions
Topic: Leave Room what sort of room?
Replies: 2
Views: 166

Re: Leave Room what sort of room?

Code: Select all

if (room instanceof MMORoom) {
   // your code
}
by Rob
29 Apr 2019, 14:30
Forum: SFS2X Questions
Topic: Event closing CMD SFS2x
Replies: 2
Views: 105

Re: Event closing CMD SFS2x

Discussed here.
by Rob
19 Mar 2019, 16:20
Forum: SFS2X Questions
Topic: [NEW] SFS2X 2.13.5 available!
Replies: 1
Views: 415

Re: [NEW] SFS2X 2.13.5 available!

The AdminTool alerts me that 2.13.5 is available even though I successfully installed it. It thinks my installed version is 2.13.3.

Edit: It fixed itself if I restarted the AdminTool. I guess it only checks the version when the app starts up, not when it connects to the server...
by Rob
06 Mar 2019, 22:07
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Limit of 3541 sockets/users
Replies: 2
Views: 302

Re: Limit of 3541 sockets/users

Probably a file descriptor limit issue. Check that you used ulimit as described in the docs.

Also see this topic for further gotchas.
by Rob
28 Feb 2019, 20:58
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Too many connections
Replies: 2
Views: 170

Re: Too many connections

FYI, that error message is misspelled. "Retrive" -> "retrieve".
by Rob
19 Feb 2019, 18:13
Forum: SFS2X HTML5 / JavaScript API
Topic: Suggestion: Minimal API library version
Replies: 1
Views: 195

Suggestion: Minimal API library version

Since the SmartFox javascript library is rather big I think it would be useful to have a minimal version with just the core features in addition to the full package. Currently the library is about 350kB minified . Larger javascript libraries often have multiple versions available, usually a "mi...
by Rob
13 Feb 2019, 12:34
Forum: SFS2X C++ API
Topic: SFS2X can't raise Onconnection success
Replies: 4
Views: 736

Re: SFS2X can't raise Onconnection success

developer.kus wrote:If I want to increase keep time out of connection lost( before send login request), what is config should I have change?

That's the "Session maximum idle time" setting. In the admin tool it's located under Server Configurator > General.

Go to advanced search