Swiftpack.co - Package - vapor/websocket

Github

link
Stars: 108
Help us keep the lights on

Releases

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

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