aboutsummaryrefslogtreecommitdiffstats
path: root/manual/cowboy_websocket.md
blob: 1b071071c809542143707df5728478300fd7ab75 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
cowboy_websocket
================

The `cowboy_websocket` module implements the Websocket protocol.

The callbacks for websocket handlers are defined in the manual
for the `cowboy_websocket_handler` behaviour.

Types
-----

### close_code() = 1000..4999

> Reason for closing the connection.

### frame() = close | ping | pong
	| {text | binary | close | ping | pong, iodata()}
	| {close, close_code(), iodata()}

> Frames that can be sent to the client.

Meta values
-----------

### websocket_version

> Type: 7 | 8 | 13
>
> The version of the Websocket protocol being used.

### websocket_compress

> Type: true | false
>
> Whether a websocket compression extension in in use.

Exports
-------

None.