The controller method is used to create (or get) a controller. This controller is the used to communicate with a corresponding server side controller.

You can use several controllers on one connection to multiplex communication over many controllers.

Below you can see how to get a controller instance to communicate with the generic server-side controller. The following sections will walk through the controller API (events and communication patterns).

    var conn = new xsockets.client('ws://localhost:4502');
    var generic = conn.controller('generic');

results matching ""

    No results matching ""