Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (11 sloc) 0.396 kb
-module(sockjs_multiplex_channel, [Conn, Topic]).
-export([send/1, close/0, close/2, info/0]).
send(Data) ->
Conn:send(iolist_to_binary(["msg", ",", Topic, ",", Data])).
close() ->
close(1000, "Normal closure").
close(_Code, _Reason) ->
Conn:send(iolist_to_binary(["uns", ",", Topic])).
info() ->
Conn:info() ++ [{topic, Topic}].
Jump to Line
Something went wrong with that request. Please try again.