aboutsummaryrefslogblamecommitdiffstats
path: root/test/handlers/pool_ws_handler.erl
blob: 5475e88cb98d4311e4e791d57ccb1c71233e5842 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13












                                                           
%% Feel free to use, reuse and abuse the code in this file.

-module(pool_ws_handler).

-export([init/4]).
-export([handle/2]).

init(_, _, _, #{user_opts := ReplyTo}) ->
	{ok, ReplyTo}.

handle(Frame, ReplyTo) ->
	ReplyTo ! Frame,
	{ok, 0, ReplyTo}.