Skip to content

Instantly share code, notes, and snippets.

@VJ-OK
VJ-OK / my_app.ex
Created December 15, 2016 06:46 — forked from alanpeabody/my_app.ex
Websockets in Elixir with Cowboy and Plug
defmodule MyApp do
use Application
def start(_type, _args) do
import Supervisor.Spec, warn: false
children = [
Plug.Adapters.Cowboy.child_spec(:http, MyApp.Router, [], [
dispatch: dispatch
])