Skip to content
This repository was archived by the owner on Jun 1, 2021. It is now read-only.

Commit 737adbe

Browse files
committed
remove code dup for constants
1 parent fc89ef1 commit 737adbe

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/websocket.lua

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1+
local frame = require'websocket.frame'
2+
13
return {
24
client = require'websocket.client',
35
server = require'websocket.server',
4-
CONTINUATION = 0,
5-
TEXT = 1,
6-
BINARY = 2,
7-
CLOSE = 8,
8-
PING = 9,
9-
PONG = 10
6+
CONTINUATION = frame.CONTINUATION,
7+
TEXT = frame.TEXT,
8+
BINARY = frame.BINARY,
9+
CLOSE = frame.CLOSE,
10+
PING = frame.PING,
11+
PONG = frame.PONG
1012
}

0 commit comments

Comments
 (0)