Skip to content

Releases: vapor/websocket-kit

Fix Atomic Deprecation

22 Jan 17:50
766b4b0
Compare
Choose a tag to compare
Pre-release

Fixes Atomic deprecation (fixes #53)

wss:// fix

20 Jan 17:24
Compare
Choose a tag to compare
wss:// fix Pre-release
Pre-release

Fixes a small issue with regards to forwarding bytes on a wss websocket. Also ups NIO version to 2.11.1 because of apple/swift-nio#1280.

Add ping/pong callbacks to WebSocket

16 Dec 22:09
Compare
Choose a tag to compare
Pre-release
  • Adds onPing and onPong callbacks to WebSocket (#45)

Although WebSocketKit handles ping / pong automatically according to spec, it can be useful to know when these events happen.

ws.onPong { ws in
    print("pong received")
}

ws.onPing { ws in
    print("ping received")
}
  • Adds WebSocket.closeCode containing WebSocketErrorCode that is set when the WebSocket closes (#45)

  • HTTPHeaders are now passed through WebSocket.connect calls (#45)

WebSocketKit 2.0.0 Beta 2

09 Dec 15:34
3c3bf59
Compare
Choose a tag to compare
Pre-release
  • Fixed wss:// default port. (#47, #48)

  • Enabled test discovery on Linux (#50)

WebSocketKit 2.0.0 Beta 1

24 Oct 19:09
66c0ea5
Compare
Choose a tag to compare
Pre-release

This package has been renamed to WebSocketKit. It now focuses on supplying a WebSocket client modeled after async-http-client. WebSocket server is still supported, but it is expected that you will bring your own NIO ServerBootstrap.

For usage examples, check out the tests folder:
https://github.com/vapor/websocket-kit/blob/master/Tests/WebSocketKitTests/NIOWebSocketClientTests.swift

WebSocket 1.1.2

26 Mar 17:04
d85e5b6
Compare
Choose a tag to compare

Fixed:

  • Fixed a reference cycle in WebSocket.

WebSocket 1.1.1

17 Jan 18:16
21eb477
Compare
Choose a tag to compare

Fixed:

  • WebSocket now buffers incoming messages before callbacks are set. (#31)

WebSocket 1.1.0

16 Oct 18:37
Compare
Choose a tag to compare

New:

  • New send(raw:opcode:fin:promise:) method on WebSocket. (#28)
ws.send(raw: "Hello, ", opcode: .text, fin: false)
ws.send(raw: "world", opcode: .continuation, fin: false)
ws.send(raw: "!", opcode: .continuation)
  • WebSocket server now supports parsing continuation frames from the client. (#27)

Fixed:

  • WebSocket client now properly masks pong frame. (#26)

Websocket 1.0.2

19 Sep 13:00
149af03
Compare
Choose a tag to compare

Fixes masking frame issue in client mode. Thanks @pvels

WebSocket 1.0.1

09 May 02:40
141cb4d
Compare
Choose a tag to compare

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