JavaScript SDK Downloads

  • 3.3.0 - https://developers.voicelayer.io/sdk/js/voicelayer-js-3.3.0.zip
    • New messages.getMissed function
    • Automatically fetch missed messages on reconnect (triggers message:missed if there are any messages)
    • Timeouts can now be configured with the following options:
      • pingFrequency - How frequently a "ping" should be sent to the server in milliseconds. Defaults to 120000
      • pongTimeout - time in millisconds for the server to respond with pong before attempting to reconnect the WebSocket. Defaults to 6000.
      • unavailableTimeout - time in millisconds to attempt connecting before marking the connection as unavailable. Defaults to 10000.
    • DEPRECATION Passing a string as the third option to the VoiceLayer constructor is deprecated. { directory: 'path/to/scripts' } should be used instead.
  • 3.2.0 - https://developers.voicelayer.io/sdk/js/voicelayer-js-3.2.0.zip
    • Messages are now uploaded in a single HTTP request instead of doing 1 HTTP request for the data and a separate request for the metadata. This improves the performance of message uploads
    • Channels.requestAccess function to request access to a public channel
  • 3.1.0 - https://developers.voicelayer.io/sdk/js/voicelayer-js-3.1.0.zip

    • The following functions can now be paginated using an optional argument:
      • app.getUsers
      • channels.getPublic
      • channels.getAttachments
      • channels.getMesasges
      • channels.getRequests
      • channels.getUsers
      • channels.getInvitedUsers
      • curentUser.getChannels
      • currentUser.getRequests
      • currentUser.getInvites
    • The callback returns a page argument. More information about pagination is available at paginated
    • A new function player.isPlaying() returns if a message is playing or not.
    • A new function recorder.isRecording() returns if a message is recording or not.
    • The channels.createMessage function now correctly returns the created message in the callback
    • The sample client can now be configured with the API keys on the first load. This configuration is stored in localStorage and can be reset using delete localStorage.voicelayer
    • The sample client now supports the message:retry event. When received the message will be played again
  • 3.0.1 - https://developers.voicelayer.io/sdk/js/voicelayer-js-3.0.1.zip
    • Fixed a bug where if the server closed the connection, reconnections would fail
    • Fixed a bug where the connection events were separated by a "." instead of a ":"
      • connection:connected was correct and is unchanged
      • connection.connecting is now connection:connecting
      • connection.connecting_in is now connection:connecting_in
      • connection.disconnected is now connection:disconnected