Swiftpack.co - Package - vapor/websocket-kit

Github

link
Stars: 113
Help us keep the lights on

Used By

Total: 2

Releases

2.0.0-beta.1 - Oct 24, 2019

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

1.1.2 - Mar 26, 2019

Fixed:

  • Fixed a reference cycle in WebSocket.

1.1.1 - Jan 17, 2019

Fixed:

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

1.1.0 - Oct 16, 2018

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)

1.0.2 - Sep 19, 2018

Fixes masking frame issue in client mode. Thanks @pvels