Skip to content

Releases: litert/websocket.js

v0.2.8

Choose a tag to compare

@fenying fenying released this 01 Nov 11:37
v0.2.8
ad88114

CHANGES

Full Changelog: v0.2.7...v0.2.8

v0.2.7

Choose a tag to compare

@fenying fenying released this 21 Oct 09:05
v0.2.7
6e1ea31

CHANGES

  • fix(client): the UNIX domain socket path should work as expected.

    The UDS path was mistakenly ignored when forceNewConnection is set to
    true on HTTP connections.

    This patch is to fix the compatibility before NodeJS v20.12.0 (refer to NodeJS patch #51900).

Full Changelog: v0.2.6...v0.2.7

v0.2.6

Choose a tag to compare

@fenying fenying released this 13 Oct 12:29
v0.2.6
101859d

CHANGES

  • fix(client): the UNIX domain socket path should work as expected.

    The UDS path was mistakenly ignored when forceNewConnection is set to
    true on HTTPS connections.

  • fix(client): should not crash if timeout during connecting to server.

    A missed error event on the socket will cause an uncaught exception.

Full Changelog: v0.2.5...v0.2.6

v0.2.5

Choose a tag to compare

@fenying fenying released this 10 Oct 14:36
v0.2.5
5a84bab

CHANGES

  • feat(connection): added supports for early data.

    The early data is appended to the handshake request or response
    when the connection is created. Both the client and server can meet
    the early data during the handshake phase.

    For the server, there is no change to the existing API. And for the client,
    a pair of new APIs are introduced:

    • createClient(): create a client instance without connecting to the server.
    • createSecureClient(): create a secure client instance without connecting to the server.

    After creating the client instance, you can use connect() method to
    connect to the server later. And before calling connect(), you must setup
    the message event handler to receive the early data from the server.

    The existing wsConnect() and wssConnect() methods are kept for backward
    compatibility, but they are now implemented using the new APIs internally.
    BTW, they are marked as deprecated, and will be removed in future releases.

Full Changelog: v0.2.4...v0.2.5

v0.2.4

Choose a tag to compare

@fenying fenying released this 06 Oct 09:50
v0.2.4
672af99

CHANGES

  • feat(connection): added option forceNewConnection for connection creation.
  • feat(connection): allow sending Buffer in writeText method.

Full Changelog: v0.2.3...v0.2.4

v0.2.3

Choose a tag to compare

@fenying fenying released this 08 Apr 07:28
v0.2.3
c1ed695

Changes

  • fix(connection): added default write-callback in case of missing uncaught exception.

Full Changelog: v0.2.2...v0.2.3

v0.2.2

Choose a tag to compare

@fenying fenying released this 31 Mar 16:05
v0.2.2
459f6a4

CHANGES

  • feat(connection): added drain event supports.
  • feat(connection): added maxMessageSize readonly property on connections.
  • feat(connection): now createMessageWriter method returns a Writable stream.
  • feat(connection): all write method supports callback parameter for draining.
  • feat(connection): refactored the writing logic.
  • fix(connection): close the connection correctly on received CLOSE opcode.
  • fix(encoding): simplified the code of encoder.
  • fix(encoding): failed to decode an empty FIN frame under SIMPLE mode.
  • fix(encoding): failed to decode an empty FIN frame under STANDARD mode.
  • fix(encoding): a message will be consume multiple times under STANDARD mode.

Full Changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@fenying fenying released this 22 Mar 14:31
v0.2.1
4163ee9

Changes

  • fix(client): connection close during handshaking should throw an error.

v0.2.0

Choose a tag to compare

@fenying fenying released this 18 Feb 04:34
v0.2.0
7e4324b

CHANGES

Notable

  • Added full CONTINUATION frame supprots.

Details

  • build(project): use term message instead of frame.
  • feat(connection): added MessageWriter for writing fragmented messages.
  • feat(encoding): added simple mode for decoding with CONTINUATION frames.
  • fix(client): add websocket handshake headers to the request automatically.
  • fix(encoding): finish decoding empty frame immediately when full header is received.
  • fix(connection): renamed frame event to message.

Full Changelog: v0.1.2...v0.2.0

v0.1.2

Choose a tag to compare

@fenying fenying released this 06 Feb 13:38
v0.1.2
b3bdde6

Changes

  • fix(connection): should send TEXT frame with writeText method.