Skip to content

archipelago.js@0.2.0

Compare
Choose a tag to compare
@ThePhar ThePhar released this 14 Jun 06:57
· 26 commits to main since this release

0.2.0

Features:

  • Added specialized events for each type of server packet the client can receive that implementers can subscribe to via ArchipelagoClient.addListener():

    • packetReceived
    • bounced
    • connected
    • connectionRefused
    • dataPackage
    • invalidPacket
    • locationInfo
    • printJSON
    • print
    • receivedItems
    • retrieved
    • roomInfo
    • roomUpdate
    • setReply
  • When connected to the Archipelago server, the ArchipelagoClient will fire a GetDataPackage packet to update its data package cache.

  • Added DataManager object to ArchipelagoClient that automatically listens for DataPackage packets and updates its cache accordingly.

API Changes:

  • Converted client packet classes into interfaces.
  • Connecting to the Archipelago server via ArchipelagoClient.connect() does not resolve the promise until completely connected to the room or if the websocket fails to connect or server refuses the connection.

Misc Changes:

  • Moved all source files into a src directory.

Full Changelog: 0.1.6...0.2.0