talira

WebSockex

An Elixir WebSocket client built on OTP processes

open sourceMITfree

WebSockex is an open source WebSocket client for Elixir. A client is a module that uses WebSockex and handles incoming frames, pings and connection events in callbacks, runs as its own process and can sit under a supervisor. wss:// connections verify the server certificate and hostname by default, and it can dial IPv6 and connect through an HTTP CONNECT proxy.

Problems it solves

  • connect to a WebSocket server from an Elixir app
  • keep a supervised WebSocket client process running in Elixir
  • consume a streaming WebSocket API from Elixir

Features

  • callback module handles frames, pings and connection events
  • runs as a supervised process
  • verifies wss:// certificates and hostnames by default (OS trust store on OTP 25+ or castore)
  • custom CA certificates or TLS options
  • IPv6 and HTTP CONNECT proxy support

Alternatives

The same job

These do what WebSockex does.

  1. websocket_client (Erlang) OTP-compliant WebSocket client for Erlang, over ws and wss

Compare WebSockex with the top 3