diff options
author | Paweł Chmielowski <pawel@process-one.net> | 2015-02-25 10:42:59 +0100 |
---|---|---|
committer | Paweł Chmielowski <pawel@process-one.net> | 2015-02-25 13:57:02 +0100 |
commit | b42b171613b81857aa12dcf69b42fa11083c45ce (patch) | |
tree | 9466ffd281f8cc1ca40eedcd29cb79f45354531e /include | |
parent | Merge pull request #442 from weiss/use-stable-elixir (diff) |
Add support for websocket connections
Diffstat (limited to 'include')
-rw-r--r-- | include/ejabberd_http.hrl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/ejabberd_http.hrl b/include/ejabberd_http.hrl index 93170634..50c9d4ad 100644 --- a/include/ejabberd_http.hrl +++ b/include/ejabberd_http.hrl @@ -34,3 +34,15 @@ opts = [] :: list(), headers = [] :: [{atom() | binary(), binary()}]}). + +-record(ws, + {socket :: inet:socket() | p1_tls:tls_socket(), + sockmod = gen_tcp :: gen_tcp | p1_tls, + ip :: {inet:ip_address(), inet:port_number()}, + host = <<"">> :: binary(), + port = 5280 :: inet:port_number(), + path = [] :: [binary()], + headers = [] :: [{atom() | binary(), binary()}], + local_path = [] :: [binary()], + q = [] :: [{binary() | nokey, binary()}], + buf :: binary()}). |