[GH-ISSUE #172] Websocket event : Inactive #109

Closed
opened 2026-02-28 14:25:26 +03:00 by kerem · 0 comments
Owner

Originally created by @amvivaldi on GitHub (Feb 20, 2025).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/172

After a logout request performed i would expect a "emitting websocket event: inactive" to go through the websocket connection when the device is disconnected correctly.

Step to reproduce:

  • connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_1
  • disconnect from librespot_device_1;

Result from journal:
time="2025-02-20T14:30:30+01:00" level=debug msg="requested logout out from **************************"
time="2025-02-20T14:30:30+01:00" level=debug msg="dealer connection closed"
time="2025-02-20T14:30:30+01:00" level=debug msg="dealer recv loop stopped"

Strangely the inactive notification goes through correctly if a second device connects, disconnecting the first one:
Step to reproduce:

  • connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_1
  • connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_2

librespot_device_1 log:
time="2025-02-20T15:13:38+01:00" level=debug msg="put connect state inactive"
time="2025-02-20T15:13:38+01:00" level=trace msg="emitting websocket event: inactive"
time="2025-02-20T15:13:38+01:00" level=trace msg="emitting websocket event: stopped"
time="2025-02-20T15:13:38+01:00" level=debug msg="dealer connection closed"
time="2025-02-20T15:13:38+01:00" level=debug msg="dealer recv loop stopped"

Library version 1.2.0

Originally created by @amvivaldi on GitHub (Feb 20, 2025). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/172 After a logout request performed i would expect a "emitting websocket event: inactive" to go through the websocket connection when the device is disconnected correctly. Step to reproduce: - connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_1 - disconnect from librespot_device_1; Result from journal: time="2025-02-20T14:30:30+01:00" level=debug msg="requested logout out from **************************" time="2025-02-20T14:30:30+01:00" level=debug msg="dealer connection closed" time="2025-02-20T14:30:30+01:00" level=debug msg="dealer recv loop stopped" Strangely the inactive notification goes through correctly if a second device connects, disconnecting the first one: Step to reproduce: - connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_1 - connect to Librespot operational device with Ios spotify app => ipad connects to librespot_device_2 librespot_device_1 log: time="2025-02-20T15:13:38+01:00" level=debug msg="put connect state inactive" time="2025-02-20T15:13:38+01:00" level=trace msg="emitting websocket event: inactive" time="2025-02-20T15:13:38+01:00" level=trace msg="emitting websocket event: stopped" time="2025-02-20T15:13:38+01:00" level=debug msg="dealer connection closed" time="2025-02-20T15:13:38+01:00" level=debug msg="dealer recv loop stopped" Library version 1.2.0
kerem closed this issue 2026-02-28 14:25:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#109
No description provided.