From 6421dca1b8f10c6fbe9b741f6159b0194529a660 Mon Sep 17 00:00:00 2001 From: Mike Beam Date: Wed, 2 Oct 2013 08:03:55 -0500 Subject: [PATCH] Added module() as a union type of callback(), which is permitted according to sockjs_session:emit/2. --- src/sockjs_internal.hrl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sockjs_internal.hrl b/src/sockjs_internal.hrl index 4f696d8..6b34089 100644 --- a/src/sockjs_internal.hrl +++ b/src/sockjs_internal.hrl @@ -3,7 +3,7 @@ -type(user_session() :: nonempty_string()). -type(emittable() :: init|closed|{recv, binary()}). --type(callback() :: fun((user_session(), emittable(), any()) -> ok)). +-type(callback() :: module()|fun((user_session(), emittable(), any()) -> ok)). -type(logger() :: fun((any(), req(), websocket|http) -> req())). -record(service, {prefix :: nonempty_string(),