Skip to content

WebSocket 1.0.1

Compare
Choose a tag to compare
@tanner0101 tanner0101 released this 09 May 02:40
· 99 commits to main since this release
141cb4d

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