Skip to content

Transports

Andrew J. Gillis edited this page May 6, 2018 · 6 revisions

API Reference

GoDoc

Any combination of clients, using different transports and serializations, can all communicate with each other through the same nexus router.

Transport Options

Serializations

For all transports except the local transport, JSON, MessagePack, and CBOR serialization is available.

Transport Layer Security (TLS)

For all transports except the local transport, TLS is available.

Websocket Transport

Nexus uses the Gorilla WebSocket package as its websocket implementation.

RawSocket Transport

The RawSocket transport works over TCP and Unix sockets. When configuring RawSocket clients or servers, a maximum receive size limit may be specified by either. This limits the maximum message size that a client or server is willing to receive. If not specified, the size limit is 16Mb.

Local Transport

The local transport, is a direct in-process connection between a client and the router. This is used to connect clients to the router when the clients are embedded in the same application as the router. Doing this eliminates the need for any socket and serialization overhead, and does not require authentication.