WebsockexAdapter.Examples.Docs.BasicUsage (WebsockexAdapter v0.1.1)

View Source

Basic usage examples from the documentation. These examples demonstrate simple WebSocket connections and message handling.

Summary

Functions

Connection with custom headers example.

Simple echo server connection example.

Functions

custom_headers_example(token)

Connection with custom headers example.

Shows how to connect with authorization headers and other custom headers.

echo_server_example()

Simple echo server connection example.

Connects to an echo WebSocket server, sends a message, and receives the echo. The default handler automatically sends messages to the calling process.