We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 196a937 commit e8d9bfeCopy full SHA for e8d9bfe
2 files changed
api/src/main/java/xyz/gianlu/librespot/api/ApiServer.java
@@ -2,7 +2,6 @@
2
3
import io.undertow.Undertow;
4
import io.undertow.server.RoutingHandler;
5
-import io.undertow.websockets.WebSocketProtocolHandshakeHandler;
6
import org.apache.log4j.Logger;
7
import org.jetbrains.annotations.NotNull;
8
import xyz.gianlu.librespot.api.handlers.PlayerHandler;
@@ -22,8 +21,7 @@ public ApiServer(int port) {
22
21
}
23
24
private static void prepareHandlers(@NotNull RoutingHandler root, @NotNull Session session) {
25
- root.post("/player/{cmd}", new PlayerHandler(session))
26
- .get("/events", new WebSocketProtocolHandshakeHandler(new EventsDispatcher(session)));
+ root.post("/player/{cmd}", new PlayerHandler(session));
27
28
29
public void start(@NotNull Session session) {
api/src/main/java/xyz/gianlu/librespot/api/EventsDispatcher.java
0 commit comments