1.2.1 • Published 3 years ago
ezyfox-es6-client v1.2.1
ezyfox-server-es6-client
javascript emacs 6 client for ezyfox server
Synopsis
javascript emacs 6 client for ezyfox server
Documentation
https://youngmonkeys.org/ezyfox-es6-client-sdk/
Code Example
You can find the full example here
1. Create ws client
var config = new Ezy.ClientConfig;
config.zoneName = "zoneName";
var clients = Ezy.Clients.getInstance();
var client = clients.newDefaultClient(config);
2. Setup ws client*
var setup = client.setup;
setup.addEventHandler(Ezy.EventType.DISCONNECTION, disconnectionHandler);
setup.addDataHandler(Ezy.Command.HANDSHAKE, handshakeHandler);
setup.addDataHandler(Ezy.Command.LOGIN, userLoginHandler);
setup.addDataHandler(Ezy.Command.APP_ACCESS, accessAppHandler);
var setupApp = setup.setupApp("appName");
setupApp.addDataHandler("command", function(app, data) {
controller.contactController.handleSuggestedContactsResponse(data);
});
3. Connect to server
client.connect("ws://localhost:2208/ws");
Installation
npm i ezyfox-es6-client
1.2.0
3 years ago
1.2.1
3 years ago
1.2.0-alpha
3 years ago
1.2.0-beta
3 years ago
1.1.9
3 years ago
1.1.8
3 years ago
1.1.7
3 years ago
1.1.6
3 years ago
1.1.5
4 years ago
1.1.4
4 years ago
1.1.3
5 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago