Skip to content

Minimalist and extensible Android Client signaling framework for multi-party Real-Time applications

License

Notifications You must be signed in to change notification settings

haiyangwu/protoo-client-android

Repository files navigation

protoo-client-android

Bintray Build Status Codacy Badge

Minimalist and extensible Android Client signaling framework for multi-party Real-Time applications

Getting Started

Setting up the dependency

Include protoo-client-android into your project, for example, as a Gradle compile dependency:

implementation 'org.protoojs.droid:protoo-client:4.0.3'

Example

  • implement your own WebSocketTransport
public class WebSocketTransport extends AbsWebSocketTransport {
    // ...
}

protoo-client-android just define a base class AbsWebSocketTransport which offer opportunity to implement your own WebSocketTransport

  • creates a WebSocket connection
WebSocketTransport transport = new WebSocketTransport("wss://example.org");
  • create a participant in a remote room
private Peer.Listener peerListener =
      new Peer.Listener() {
        // ...
      };
mPeer = new Peer(transport, peerListener);
  • send request or notify

Once connected to remote server Peer.Listener#onOpen will be called, then you can call Peer#request or Peer#notify to send message to server.

mPeer.request("dummy", ...);
mPeer.notify("dummy", ...);

Author

Haiyang Wu(@haiyangwu at Github)

License

MIT

About

Minimalist and extensible Android Client signaling framework for multi-party Real-Time applications

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages