Search found 11 matches
- 06 Jun 2018, 16:18
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Disconnection/Reconnection in Javascript API
- Replies: 4
- Views: 9982
Re: Disconnection/Reconnection in Javascript API
Thank you, we are expecting a new release soon
- 06 Jun 2018, 08:32
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Disconnection/Reconnection in Javascript API
- Replies: 4
- Views: 9982
Re: Disconnection/Reconnection in Javascript API
Thanks for the support. Can we expect the retry logic for attempting re-connection in websockets through sfs api , in the library itself in future updates, passing the reconnection attempts to the config when creating the smartfox instance, so that it would be really great for developers ,that the l...
- 05 Jun 2018, 09:22
- Forum: SFS2X HTML5 / JavaScript API
- Topic: Disconnection/Reconnection in Javascript API
- Replies: 4
- Views: 9982
Disconnection/Reconnection in Javascript API
How to handle disconnection and reconnection in SFS2X Javscrit API, For example in socket.io the library attempts to connect for a specific number of times, if connected within the specific time, connection is established. Do we have one, like that in SmartFox???? Or should we write our own logic fo...
- 11 Apr 2018, 07:21
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
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): import * as SFS2X from "sfs2x-api"; Yeah its working in webpack thanks. for pure javascript developers have to go in the above ...
- 11 Apr 2018, 05:11
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
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 The package is good and working fine, a small suggestion for the next release through npm. Now the install...
- 10 Apr 2018, 16:23
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
Bax wrote: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
Thank you for the support
- 09 Apr 2018, 06:23
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
We have fully modified the JS API build system, now hopefully preventing all the issues with Webpack. If you are interested, we can send you a pre-release version that you can check (contact us by email). If everything is ok, we might explore the creation of an official NPM package as you suggested...
- 29 Mar 2018, 05:30
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
I think that webpack is exporting each and every module and in sfs-api the Zlib module is getting undefined since its not exported by webpack. As far as i know : If the Zlib bundled within the smartfox is purely local to smartfox library, then i think webpack wouldn't create any problems. if it is i...
- 28 Mar 2018, 10:25
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
Can you try to bundle the Zlib library separately in your web pack project? You can get the library here: https://github.com/imaya/zlib.js (file "bin/zlib.min.js"). Yeah its working fine when i bundle the Zlib library(https://github.com/imaya/zlib.js (file "bin/zlib.min.js") sep...
- 28 Mar 2018, 05:00
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
We tested v1.7.7 of our JavaScript API in Webpack v4.1.1 in the following scenario. Project structure: root - dist - bundle.js .............. generated by Webpack - index.html ............. simple html loading the bundle.js file - lib - sfs2x-api-1.7.7.js ..... the SFS2X JavaScript API - package.js...
- 27 Mar 2018, 05:12
- Forum: SFS2X HTML5 / JavaScript API
- Topic: SFS2X with Webpack
- Replies: 33
- Views: 45020
Re: SFS2X with Webpack
We tested v1.7.7 of our JavaScript API in Webpack v4.1.1 in the following scenario. Project structure: root - dist - bundle.js .............. generated by Webpack - index.html ............. simple html loading the bundle.js file - lib - sfs2x-api-1.7.7.js ..... the SFS2X JavaScript API - package.js...