Skip to content

Releases: ptcrealitylab/toolsocket

2.1.2

24 Jun 18:54
Compare
Choose a tag to compare

PVZ and PVS added to supported filetypes.

2.1.1

07 May 14:13
1c6bda8
Compare
Choose a tag to compare

Backwards compatibility with ToolSockets that lack parallel socket functionality

2.1.0

23 Apr 17:48
e83ca44
Compare
Choose a tag to compare
Merge pull request #9 from ptcrealitylab/parallelSockets

Add support for creation of parallel sockets for large messages

2.0.1

11 Apr 17:52
Compare
Choose a tag to compare
patch version bump

2.0.0

11 Apr 17:21
bf8e2be
Compare
Choose a tag to compare

Summary

  • Confusing class hierarchy and parameters now flattened. No more toolSocket.socket.socket. Ever.
  • Many objects now get their own classes with proper documentation. No more cbSub, objBin, or packageData.
  • Major classes now get their own files. No more bloated index.js.
  • Properties of ToolSocketMessage have getters/setters with legible names. No more objBin.o or objBin.f.
  • JSDoc comments are present throughout with proper type annotations. No more wondering if 'binaryBuffer' is supposed to be an Array, a Uint8Array, or an ArrayBuffer.
  • Schemas are now built-up from individual SchemaValidators, which cleans up validation logic.
    • Types here help prevent users from setting maximum for a validator when they meant max-length.
  • New Jest unit tests for new classes and integration tests between the client and server.
  • Improved README now more concise and clear.
  • Bumped package.json version to 2.0.0.

New Classes

ToolSocketMessage - The underlying WebSocket message format.
ToolSocketResponse - An object that can be used to send a response to an incoming message.
MessageBundle - An object that stores the message body (ToolSocketMessage) and associated binary data if present.
BinaryBuffer - A helper object used for processing incoming binary data that has been split across multiple messages.
Schema - An object that offers utilities for parsing URLs/routes and validating object data formats.
SchemaValidator - An object used in the construction of Schemas that defines how URL/route/object properties will be validated.

Version 1.0.0

11 Apr 17:12
Compare
Choose a tag to compare
Fix comma spacing