Skip to content

Built on macOS, websocket doesn't work #1699

@kajarit

Description

@kajarit

I've built OwnTone server on macOS 11.7.10 Big Sur with the help of these sources:

OwnTone Server Version 28.8

  • ffmpeg
  • Spotify
  • librespot-c
  • LastFM
  • Without Chromecast
  • MPD
  • Websockets
  • Without ALSA
  • Pulseaudio
  • Webinterface
  • Regex

Almost everything works fine, except things I noticed:

  1. Now playing page doesn't refresh on track change, so when one track ends and the next starts, it still displays the previous track
  2. Selecting a new output (AirPlay speaker) also isn't reflected, just after page reload
  3. When I start a library update, then the About page also won't update until I reload it
  4. When I connect to the websockets endpoint, it doesn't sends any updates, but connection is ok

I also noticed, that the browser page also updates itself when I move to other tab and back.

Postman test
OwnTone websocket Postman

Postman header (defaults hidden)
OwnTone websocket Postman header

And here's the owntone.log fitered for web debug messages:

[2023-12-20 16:57:06] [DEBUG]      web: notify callback request: { "notify": [ "player" ] }
[2023-12-20 16:57:06] [DEBUG]      web: notify callback request: { "notify": [ "player" ] }
[2023-12-20 16:57:06] [DEBUG]      web: notify callback event received: player
[2023-12-20 16:57:06] [DEBUG]      web: notify callback event received: player
[2023-12-20 16:57:28] [DEBUG]      web: notify callback reason: 71
[2023-12-20 16:57:28] [DEBUG]      web: notify callback reason: 71
[2023-12-20 16:57:28] [DEBUG]      web: notify callback reason: 71
[2023-12-20 16:57:28] [DEBUG]      web: notify callback reason: 71
[2023-12-20 16:57:31] [DEBUG]      web: notify callback reason: 11
[2023-12-20 16:57:31] [DEBUG]      web: notify callback reason: 11

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions