Search found 21657 matches

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: 3069

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: 1
Views: 12

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: 37

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: 119

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: 85

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: 52

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: 85

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: 19

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: 52

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: 202

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: 85

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...
by Lapo
15 Jun 2021, 07:28
Forum: SFS2X Questions
Topic: Websocket at the end of URL. wss connection problem with the server
Replies: 6
Views: 85

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

Hi,
the HTTP SFS2X welcome page is reachable and the SSL is active.
Can you tell me the name of the Zone you're using for logging in?

We'll test a connection from here and let you know.

Thanks
by Lapo
15 Jun 2021, 06:40
Forum: SmartFoxServer 1.x Discussions and Help
Topic: Disallow older clients from connecting to the server.
Replies: 6
Views: 236

Re: Disallow older clients from connecting to the server.

Ok sorry, my bad :)
In any case the process should be the same, with a slight variation.

In SFS1.x you will need to login first, then from client side send an Extension call with the client version. Server side you can validate it and disconnect the user if you decide it's not valid.

Cheers
by Lapo
15 Jun 2021, 06:34
Forum: SFS2X Questions
Topic: Metaspace is only increasing, not decreasing.
Replies: 4
Views: 67

Re: Metaspace is only increasing, not decreasing.

Hi, you can deploy the Room Extension(s) under the extensions/__lib__/ to avoid the problem entirely. See the documentation here: http://docs2x.smartfoxserver.com/ExtensionsJava/advanced-concepts#classLoading With this approach the Room Extension classes will be loaded by the top class loader. Cheers

Go to advanced search