archipelago.js@0.2.0
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 aGetDataPackage
packet to update its data package cache. -
Added
DataManager
object toArchipelagoClient
that automatically listens forDataPackage
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