Search found 21660 matches

by Lapo
23 Jun 2021, 17:33
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Disallow older clients from connecting to the server.
Replies: 7
Views: 295

Re: Disallow older clients from connecting to the server.

Sorry for the delay, I see what you mean. I don't think there's a robust solution for this, at least not in SFS1.x, since it doesn't support additional data to be sent at login time. You could still verify if the client has already sent a version number, when an Extension request is received. If no ...
by Lapo
23 Jun 2021, 07:19
Forum: SFS2X Questions
Topic: Listening to multiple TCP and Websocket Ports at once
Replies: 1
Views: 10

Re: Listening to multiple TCP and Websocket Ports at once

Hello, using the default SFS2X TCP protocol you can bind multiple ports, so yes it is possible. (Though it's not possible for UDP) However for Websocket it's a bit of a different story. All HTTP-related services in SFS2X are handled by an embedded Tomcat instance. Tomcat can be configured to run on ...
by Lapo
23 Jun 2021, 06:58
Forum: SFS2X Questions
Topic: High number of threads with 1000 players
Replies: 3
Views: 31

Re: High number of threads with 1000 players

Hi, the graphs you have posted definitely show that most of the hard work is done on the Extension side. So it seems like the operation of getting the 50 entries and sorting them for each player is using significant resources, unless there's some other heavy work that your Extension does. To make su...
by Lapo
22 Jun 2021, 16:21
Forum: SFS2X iPhone / iPad / OSX API
Topic: Crypto crash with SFS server 2.3.13
Replies: 14
Views: 3084

Re: Crypto crash with SFS server 2.3.13

Hi, the logs are already detailed enough to understand what the problem is, generally speaking. It is a network read issue with the initial HTTPS exchange between client and server. In order to learn more one should inspect the packets exchanged, but because they are encrypted it's impossible to see...
by Lapo
22 Jun 2021, 14:22
Forum: SFS2X Questions
Topic: High number of threads with 1000 players
Replies: 3
Views: 31

Re: High number of threads with 1000 players

Hi, thread count can increase if the workload on the server requires it, i.e. if there's lots of long running operations and the thread pools are all busy. Another reason for a high thread usage can be if you use Websockets, as Tomcat uses fairly large thread pools although typically they don't go t...
by Lapo
19 Jun 2021, 09:50
Forum: SFS2X Questions
Topic: How to send a bot to another room?
Replies: 1
Views: 46

Re: How to send a bot to another room?

Hi, if the client side connection is dropped the User will be removed, so you won't be able to join that User anywhere as it doesn't exist in the server anymore. You could either keep the connection alive from client side by sending a small "ping" message at fixed intervals (e.g. 60 second...
by Lapo
17 Jun 2021, 12:55
Forum: Server Side Extension Development
Topic: Where is the good place of some data
Replies: 1
Views: 156

Re: Where is the good place of some data

Hi, generally speaking there's no problem loading the data in a Zone Extension once and then let the other Rooms access it. However you must be aware of how SmartFoxServer uses class loaders to separate each Extension in a different context. http://docs2x.smartfoxserver.com/ExtensionsJava/advanced-c...
by Lapo
17 Jun 2021, 12:41
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 6
Views: 97

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

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
by Lapo
17 Jun 2021, 11:36
Forum: SFS2X Questions
Topic: How To Create User Registration In SFS2X and Save Data To SqlServer Database
Replies: 4
Views: 57

Re: How To Create User Registration In SFS2X and Save Data To SqlServer Database

Hi, one problem I see in your client side logic is that you're sending both the LoginRequest and the next ExtensionRequest at the same time, without waiting for the client to actually triggering an SFSEvent.LOGIN. My suggestion is to only send the LoginRequest and then move the Extension request in ...
by Lapo
17 Jun 2021, 11:22
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 6
Views: 97

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

Please show us the code you are using for the connection
Thanks
by Lapo
17 Jun 2021, 11:20
Forum: SFS2X Questions
Topic: [SFS - ERROR] [WebSocketLayer] Communication error: Disconnected.
Replies: 1
Views: 22

Re: [SFS - ERROR] [WebSocketLayer] Communication error: Disconnected.

Hi,
you need to post all the details.
Which client side API are you using? (Unity? Javascipt?) and which version?

Also which SmartFoxServer 2x version are you using?

Can you show us the connection code you're using?

Thanks
by Lapo
17 Jun 2021, 05:43
Forum: SFS2X Questions
Topic: How To Create User Registration In SFS2X and Save Data To SqlServer Database
Replies: 4
Views: 57

Re: How To Create User Registration In SFS2X and Save Data To SqlServer Database

HI,
have you checked the server side logs after trying to register a new User? You should find some error giving you more details about what has happened.

Let us know
by Lapo
16 Jun 2021, 17:41
Forum: SFS2X Questions
Topic: Encrypt Connection
Replies: 6
Views: 205

Re: Encrypt Connection

Thanks for the update
Cheers
by Lapo
15 Jun 2021, 09:30
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 6
Views: 97

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

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 c...

Go to advanced search