Search found 21655 matches

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

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

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

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
by Lapo
14 Jun 2021, 14:31
Forum: SFS2X Questions
Topic: 4 Questions in one topic
Replies: 3
Views: 96

Re: 4 Questions in one topic

1) I want that if someone signup with an username (or an email address) already used, if the account associated to this username isn't validated (with code validation by email) then this account is deleted to make available the username to the new user. This is not possibile and generally speaking ...
by Lapo
14 Jun 2021, 07:38
Forum: SFS2X Questions
Topic: Performance question
Replies: 3
Views: 47

Re: Performance question

Hi,
the unchecked cast is just a warning so you can ignore it or, as you said, use the compiler directive to avoid the warning in your compilation report.

I am not aware of other ways to remove it.

Cheers

Go to advanced search