Connect

Description

This methods lets you start a connection with the server for handling request and handling new incoming events.

Params

The arguments that function accepts are the following:

  • context

    • Description

      • Its a mandatory field expecting the Context in which the application is running.

    • Data Type

      • android.content.Context

  • userId

    • Description

      • Its a field that expects the userUniqueId for attaching all this transaction, and messages to this id.

    • Data Type

      • String

Example of Use

widgetService.connect(MainActivity.this);

Last updated