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}.