Search found 4371 matches

by Bax
21 May 2018, 07:35
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X.LoginRequest is not a constructor.
Replies: 2
Views: 28

Re: SFS2X.LoginRequest is not a constructor.

Can you please send a test case?
Because we tested the new API in all our examples, and they work as expected. No "not a constructor" error ever.
Maybe something else is going on?
by Bax
17 May 2018, 16:00
Forum: SFS2X HTML5 / JavaScript API
Topic: [NEW] API v1.7.11 released
Replies: 0
Views: 29

[NEW] API v1.7.11 released

We just released v1.7.11 of the SFS2X JavaScript client API, which fixes a blocking issue with Internet Explorer 11.
You can find the new version on the download page as usual: https://www.smartfoxserver.com/download/sfs2x#p=client
by Bax
17 May 2018, 15:56
Forum: SFS2X HTML5 / JavaScript API
Topic: Internet Explorer 11 not supported?
Replies: 7
Views: 34

Re: Internet Explorer 11 not supported?

The new version is available in the download section of our website.
Again, thank you for pointing out the issue.
by Bax
17 May 2018, 09:38
Forum: SFS2X HTML5 / JavaScript API
Topic: Internet Explorer 11 not supported?
Replies: 7
Views: 34

Re: Internet Explorer 11 not supported?

Actually we are investigating if we can avoid forcing developers to import a separate library.
If everything works well we will release an API version including the polyfill needed to fix the IE11 compatibility.
I'll let you know soon.
by Bax
16 May 2018, 16:39
Forum: SFS2X HTML5 / JavaScript API
Topic: Internet Explorer 11 not supported?
Replies: 7
Views: 34

Re: Internet Explorer 11 not supported?

In case you are using npm (as described in this tutorial: http://docs2x.smartfoxserver.com/ExamplesJS/connector-npm-webpack), you should install the babel-polyfill library available in the npm repository and then import it using this statement at the very beginning of your entry file: import "b...
by Bax
16 May 2018, 15:55
Forum: SFS2X HTML5 / JavaScript API
Topic: Internet Explorer 11 not supported?
Replies: 7
Views: 34

Re: Internet Explorer 11 not supported?

Ok, issue solved. You should load the babel-polyfill library before the SFS2X API file, like this: <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.26.0/polyfill.min.js"></script> <script type="text/javascript" src="libs/s...
by Bax
16 May 2018, 15:06
Forum: SFS2X HTML5 / JavaScript API
Topic: Internet Explorer 11 not supported?
Replies: 7
Views: 34

Re: Internet Explorer 11 not supported?

Hi.
Our API were fully compatible with IE11 until v1.7.9.
It seems the new build system introduced in v1.7.10 has broken something, despite we didn't change the actual code.
Let us investigate more. We will let you know soon.
by Bax
16 May 2018, 14:33
Forum: SFS2X C# API
Topic: how i can send String array to client unity
Replies: 1
Views: 15

Re: how i can send String array to client unity

We tested this and everything works as expected. Server Extension : ISFSObject dataObj = new SFSObject(); Collection<String> name = new ArrayList<String>(); name.add("a"); name.add("b"); dataObj.putUtfStringArray("name", name); send("test", dataObj, sender); U...
by Bax
24 Apr 2018, 10:04
Forum: SFS2X Questions
Topic: set proxy server for Elastic License validation from China
Replies: 1
Views: 305

Re: set proxy server for Elastic License validation from China

As already replied by email... Using a proxy server might work, supposed you configure the JVM running SFS2X appropriately and your proxy is not blocked by GFW. Please take a look at this URL, in particular paragraph 2.2: https://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html To set...
by Bax
19 Apr 2018, 10:06
Forum: SFS2X C# API
Topic: NullReferenceException and KeyNotFoundException thrown in EventDispatcher.DispatchEvent
Replies: 2
Views: 112

Re: NullReferenceException and KeyNotFoundException thrown in EventDispatcher.DispatchEvent

This is what the DispatchEvent method mentioned in the stack traces does: public void DispatchEvent(BaseEvent evt) { EventListenerDelegate dlg = listeners[evt.Type] as EventListenerDelegate; if (dlg != null) { evt.Target = this.target; try { dlg(evt); } catch (Exception ex) { throw new Exception(&qu...
by Bax
13 Apr 2018, 14:13
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X + Node.js
Replies: 0
Views: 157

SFS2X + Node.js

In a new article in our blog, today we describe how to integrate the SFS2X API for JavaScript in a Node.js application.
Check it ur at this URL: http://smartfoxserver.com/blog/sfs2x-and-node-js/
by Bax
13 Apr 2018, 08:31
Forum: SFS2X HTML5 / JavaScript API
Topic: [NEW] API v1.7.10 released
Replies: 0
Views: 122

[NEW] API v1.7.10 released

We just released v1.7.10 of the SFS2X JavaScript client API. Starting from this new version, we completely reviewed the build process of the API. This fixes some compatibility issues of the internal third-party libraries with module bundlers (like webpack ) and also brings: ⋅ reduced API f...
by Bax
11 Apr 2018, 08:37
Forum: SFS2X HTML5 / JavaScript API
Topic: SFSErrorCodes documentation appears incorrect
Replies: 2
Views: 109

Re: SFSErrorCodes documentation appears incorrect

Error fixed. Please download API v1.7.10.
We also fixed the documentation error; in fact you should use:

Code: Select all

function someMethod()
{
   SFS2X.SFSErrorCodes.setErrorMessage(13, "Le Groupe demandé n'est pas disponible - Salle: {0}; Groupe: {1}");
}
by Bax
11 Apr 2018, 07:07
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 2193

Re: SFS2X with Webpack

Actually I think you can import the library using the package name, instead of the file name.
We are using the following and it works fine (at least in webpack):

Code: Select all

import * as SFS2X from "sfs2x-api";
by Bax
10 Apr 2018, 16:21
Forum: SFS2X HTML5 / JavaScript API
Topic: SFS2X with Webpack
Replies: 33
Views: 2193

Re: SFS2X with Webpack

The new version of the API (1.7.10) is now available here: http://www.smartfoxserver.com/download/sfs2x#p=client
We also published the NPM package here: https://www.npmjs.com/package/sfs2x-api

Go to advanced search