Skip to content
elixir server of engine.io
Elixir
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
config
lib
test
.gitignore
README.md
mix.exs

README.md

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
Something went wrong with that request. Please try again.