Created
August 4, 2014 19:05
-
-
Save cheeyeo/93b9f71720af45dec486 to your computer and use it in GitHub Desktop.
Raw websockets in elixir
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# You can wire up a cowboy specific websocket handler with the following: | |
defmodule MyRouter do | |
use Phoenix.Router | |
dispatch_option "/ws", MyCowboyWebsocketHandler | |
end | |
defmodule MyCowboyWebsocketHandler do | |
@behaviour :cowboy_websocket_handler | |
# implement the cowboy websocket behavior | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment