New:
- Added support for sending / receiving WebSocket close codes (#6, #3).
ws.onCloseCode { closeCode in
print(closeCode)
}
ws.close(code: .normalClosure)
- Max frame size is now configurable for both WebSocket client and server (#7, #4).
- You can now specify extra headers to add during WebSocket client upgrade (#2).
Fixed:
WebSocket.isClosed
is now properly set to true when closed (#8, #5).
Milestone:
1.0.1