Swiftpack.co - Package - vapor/websocket

Github

link
Stars: 80
Help us keep the lights on

Releases

1.0.1 - May 9, 2018

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

1.0.0 - Apr 18, 2018

Introducing WebSocket 1.0 🎉 🔌 Non-blocking, event-driven WebSocket client and server built on Swift NIO.

Docs: https://docs.vapor.codes/3.0/websocket/getting-started/

API Docs: https://api.vapor.codes/websocket/latest/WebSocket/


This module has been moved from the old vapor/engine repo to its own package. This will make it easier to version going forward 🙌.

Milestone: 1.0.0