Skip to content

Changelog

Version 14

14.0.1

  • #338 Declare correct ws options type

14.0.0

  • #335 v14.0.0 Release Notes
  • #334 Release next version as 14.0.0
  • #333 chore: set min node version
  • #330 chore: 🤖 import and improve outdate typings from DT
  • #329 Upgrade to ws@8.x
  • #327 chore: change CI target for next

Version 13

13.0.1

  • #325 chore: bump hoek

13.0.0

  • #322 Support node v18 and hapi v21, drop node v12 and hapi v18/19

Version 12

12.0.5

  • #323 Fix client reconnect retry attempts
  • #318 client - _reconnect update, single reconnection timer

12.0.4

  • #313 migrate to new travis format
  • #312 upgrade to hapi 20
  • #311 switch to validate and other package updates

12.0.3

  • #307 Upgrade deprecated @hapi/call@6.x.x
  • #306 fix: pass remoteAddress when injecting request
  • #305 request.info.remoteAddress is always 127.0.0.1 in request handler

12.0.2

  • #304 Prevent beat timeout from disconnecting newly connecting sockets

12.0.1

  • #303 Remove unused dep

12.0.0

  • #301 Change plugin name to @hapi/nes
  • #300 Require hapi 19
  • #299 Only node 12

Version 11

11.2.2

  • #285 Unknown authentication strategy

11.2.1

11.2.0

  • #284 Add ability to revoke a socket ignoring if it is already closed
  • #283 cleanup called twice if there is an onUnsubscribe handler

11.1.0

  • #278 Passing remoteAddress and x-forwarded-for is in whitelist when connect

11.0.1

11.0.0

  • #276 Remove client dist
  • #248 eachSocket behaves as synchronous without filter, but async with filter

Version 10

10.1.0

  • #275 Change module namespace

10.0.2

  • #270 Error in the browser with 10.0.1

10.0.1

  • #269 Update dependencies

10.0.0

Version 9

9.1.0

  • #263 Document minAuthVerifyInterval and make it less restrictive
  • #262 Close the socket when authentication verification fails
  • #260 Close the socket when authentication expires

9.0.2

9.0.1

  • #247 Reconnect on error

Version 8

8.1.0

  • #243 Add client.onHeartbeatTimeout hook

8.0.0

  • #229 Update ws to 5.x.x

Version 7

7.2.0

  • #228 Mark NesErrors as coming from nes

7.1.0

  • #224 Add socket.info object
  • #223 Delay heartbeats until server is started
  • #222 Allow isSameSite cookie option to be passed

7.0.4

  • #221 Update hapijs/call to 5.x.x
  • #220 Ignore node network errors after opening client socket

7.0.3

  • #214 Do not replace message for all sockets with override from filter

7.0.2

  • #206 Handle ws socket error events

7.0.1

  • #198 Better error handling

7.0.0

Version 6

6.5.1

6.5.0

6.4.3

  • #179 maximum call stack exceeded if web socket gets disconnected while nes is sending packets

6.4.2

  • #156 Handle undefined payloads from server in client

6.4.1

  • #171 server falls with bad cookie header

6.4.0

  • #169 Expose server and connection on socket

6.3.2

6.3.1

  • #145 Disable inject() validate

6.3.0

  • #144 Verify request Origin

6.2.5

  • #142 Reconnection timeout conflicts

6.2.4

  • #141 Add client.js and dist/ to npm tarball -Closes #140
  • #140 Missing root client.js and dist

6.2.3

6.2.2

  • #138 Always call onConnection before onSubscribe

6.2.1

  • #136 Reuse pre-stringified hapi response

6.2.0

  • #135 Cookie auth fails to register socket
  • #134 Per user connection limit
  • #133 Timeout sockets if hello takes too long

6.1.2

  • #132 Client indicates wasRequested when calling disconnect() on dead socket

6.1.1

  • #131 Incorrectly reports wasRequested when internally disconnects

6.1.0

  • #129 Include reason disconnected in log object

6.0.2

  • #127 Test on node v6

6.0.1

  • #126 Handle cases when client._ws is null

6.0.0

  • #125 Connect fails to check for previous internal socket when connecting.

Version 5

5.0.3

  • #124 Adjust unsub processing timing on server

5.0.2

  • #123 Check is socket is still around while disconnecting

5.0.1

  • #122 Prevent server from sending data when stopping

5.0.0

  • #121 Properly clean up sockets and subscriptions on server stop

Version 4

4.6.0

  • #120 Support user filter in eachSocket()

4.5.0

  • #119 Subscription revoke()
  • #118 Keep separate subscription per connection

4.4.1

  • #117 Race condition between unsubscribe and disconnect when using auth index on sub

4.4.0

  • #116 User-specific broadcast
  • #115 User-specific publish

4.3.0

  • #112 Expose socket and support publish override
  • #109 Typo: listners -> listeners

4.2.1

  • #108 Fix UMD global handling
  • #105 Client.js getting root as undefined

4.2.0

  • #107 Expose params on unsubscribe callback

4.1.0

  • #104 Provide a way to replace auth credentials before an automatic reconnect

4.0.0

  • #100 Add required callback to subscription onSubscribe option

Version 3

3.1.2

  • #99 Pause heartbeat disconnect while sending

3.1.1

  • #98 Server disconnects client after a long message transmission

3.1.0

  • #97 Break large messages into smaller chunks
  • #94 Support sending initial subscription update

3.0.0

  • #96 Update Iron and increase auto-generated password to 32 characters

Version 2

2.3.1

  • #95 Emit error when disconnecting due to missing server heartbeat

2.3.0

  • #93 Client requests fail if the request response takes longer than heartbeat timeout

2.2.0

  • #92 Return close event reason in onDisconnect
  • #90 NesError breaks if passed an error event from onerror.
  • #76 Pass the onclose information to onDisconnect

2.1.0

  • #89 Decorate errors with source type
  • #88 onDisconnect() reports reconnect state incorrectly

2.0.2

  • #87 The update to ws 1.0.x introduces breaking changes

2.0.1

  • #86 update ws to 1.0.x

2.0.0

  • #84 Change client.subscribe() to require a callback
  • #83 Add version check in hello

Version 1

1.2.2

  • #81 Fix illegal invocation error when using default onError handler.

1.2.1

  • #79 Possible to subscribe, unsubscribe, and resubscribe? v1.2.0

1.2.0

  • #72 Update to create a es5 client artifact
  • #71 Add socket.app
  • #70 Decorate request with socket
  • #69 ES6 style changes

1.1.2

  • #67 Use internal auth endpoint id for lookup
  • #66 Plugin route prefix cause mismatch with default internal auth endpoint

1.1.1

  • #65 Return auth error message in response

1.1.0

  • #64 Implement internal data for filtering messages
  • #63 Add message metadata for publish
  • #62 Implement eachSocket iterator
  • #61 Implement per-subscription lifecycle
  • #60 Add onDisconnection callback
  • #56 Add disconnection callback

1.0.0

  • #46 socket.send()
  • #45 Rename onBroadcast to onUpdate
  • #44 Max reconnect retries
  • #43 Connection timeout
  • #22 Add heartbeat
  • #19 Allow for custom callback data to Client.connect()
  • #8 Request timeout

Version 0

0.4.0

  • #42 Remove duplicated statusCode in errors
  • #41 Filter headers in responses
  • #40 Consistent error transmission
  • #38 Prevent client from including a request authorization header
  • #34 Prevent client from subscribing multiple times to same path
  • #32 Change server onConnect to onConnection and delay until after auth when required
  • #30 Block all client requests when channel requires auth
  • #29 Fix typo
  • #28 Implement unsubscribe on the server
  • #27 Expose socket authentication state
  • #26 Ability to force disconnect for specific clients
  • #25 'data' vs 'message' for incoming data
  • #24 Subscriptions are not cleaned on client disconnect

0.3.0

  • #21 Drop support for non-protocol messages
  • #20 Change default auth method to direct
  • #18 Race condition exists in client reconnect logic
  • #17 Allow for custom messages
  • #16 Turn auth on by default
  • #15 Add onConnect callback option
  • #14 Add event callback for client connection
  • #12 Add browser packaging entry points
  • #11 Initial publish/subscribe interface
  • #9 Use console.error() when no onError handler
  • #6 Re-auth on reconnect
  • #5 Allow any authentication method when using token auth
  • #4 Allow handler to handle unknown message types
  • #3 How will adding additional functionality work?

Deploys by Netlify