• Stars
    star
    14
  • Rank 1,438,076 (Top 29 %)
  • Language
    Elixir
  • Created almost 10 years ago
  • Updated about 9 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

elixir server of engine.io

Eio

engine.io server for Elixir.

Usage

use Eio as standalone server

defmodule MyApp.Eio do
  use Eio.Router

  def connect(session) do
    session |> EIO.Session.send("connect success")
  end

  def message(session, _msg) do
    session |> EIO.Session.send("message received")
    session |> EIO.Session.close
    ...
  end

  def close(_session) do
    ...
  end
end

Plug.Adapters.Cowboy.http MyApp.Eio, []

TODO

  • polling transport
  • websocket transport
  • exception
  • version support
  • base64 support
  • jsonp support
  • binary data support