Home Contents | # Introduction | Websocket | Core4 Lua Event System

## DESCRIPTION

### Overview

WebSocket is a protocol providing full-duplex communication channels over a single TCP connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011.(From Wikipedia)

The implementation is based on Wslay - The WebSocket library.

### Functions

### Object management

websocket:new()

websocket:close()

### Socket connection

websocket:detach()

websocket:attachServer()

websocket:attachClient()

### Data transmission

websocket:send()

websocket:sendText()

websocket:sendBinary()

websocket:sendPing()

websocket:sendClose()

### Other

websocket:lastError()

websocket.acceptKey()