Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/falood/eio
elixir server of engine.io
https://github.com/falood/eio
Last synced: 27 days ago
JSON representation
elixir server of engine.io
- Host: GitHub
- URL: https://github.com/falood/eio
- Owner: falood
- Created: 2015-01-12T12:38:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T02:18:42.000Z (about 9 years ago)
- Last Synced: 2024-08-11T13:06:48.521Z (3 months ago)
- Language: Elixir
- Homepage:
- Size: 108 KB
- Stars: 14
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Elixir server of engine.io. (Networking)
- fucking-awesome-elixir - eio - Elixir server of engine.io. (Networking)
- awesome-elixir - eio - Elixir server of engine.io. (Networking)
README
Eio
========[engine.io](http://www.engine.io) server for Elixir.
## Usage
use Eio as standalone server
```elixir
defmodule MyApp.Eio do
use Eio.Routerdef connect(session) do
session |> EIO.Session.send("connect success")
enddef message(session, _msg) do
session |> EIO.Session.send("message received")
session |> EIO.Session.close
...
enddef close(_session) do
...
end
endPlug.Adapters.Cowboy.http MyApp.Eio, []
```## TODO
- [X] polling transport
- [X] websocket transport
- [ ] exception
- [ ] version support
- [ ] base64 support
- [ ] jsonp support
- [ ] binary data support