Client types
Diffusion™ provides APIs for many languages and platforms. Some of these APIs have different levels of capability.
A client's type is a combination of the API it uses and the protocol it uses to connect to the Diffusion server.
Clients can also connect using the MQTT protocol instead of an API.
APIs
- JavaScript®
- Use this API to develop browser or Node.js™ clients.
- Apple®
- Use this API to develop clients in Objective-C for iOS, tvOS, or macOS.
- Android™
- Use this API to develop mobile clients in Java™.
- Java
- Use this API to develop Java clients.
- .NET
- Use this API to develop clients in C#.
- C
- Use this API to develop C clients for Linux, Windows, or macOS.
- Python
- Use this API to develop Python clients.
Protocols
The following protocols, and their secure versions, are available:
- WebSocket
- The WebSocket implementation provides a browser-based full duplex connection, built on top of WebSocket framing. This complies with the WebSocket standards and is usable with any load balancer or proxy with support for WebSocket.
- HTTP Polling
- The HTTP polling protocol uses HTTP requests with header m=1 to poll the server and HTTP requests with header m=2 to send messages to the server.
Client | WebSocket | HTTP Polling |
---|---|---|
JavaScript API | ||
Apple API | ||
Android API | ||
Java API | ||
.NET API | ||
C API |
MQTT clients can connect via WebSocket or TCP.