rename event

This commit is contained in:
Gabriel mermelstein 2024-12-24 12:08:25 +01:00
parent 611e06946e
commit 84e36d70c6
No known key found for this signature in database
GPG Key ID: 82B8134785FEAE0D

View File

@ -13,7 +13,7 @@ proc new*(
# https://rfc.vac.dev/spec/36/#jsonmessageevent-type
return JsonConnectionChangeEvent(
eventType: "relay_connection_change", peerId: peerId, peerEvent: peerEvent
eventType: "connection_change", peerId: peerId, peerEvent: peerEvent
)
method `$`*(jsonConnectionChangeEvent: JsonConnectionChangeEvent): string =