Package edu.wisc.game.websocket
Class WatchPlayer
java.lang.Object
edu.wisc.game.websocket.WatchPlayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
See https://docs.oracle.com/javaee/7/tutorial/websocket007.htm or https://www.baeldung.com/java-websockets for documentation on encodersstatic enum
Messages sent to a GUI client to tell it that something is ready for it, and it can make another /newEpisode or /display callstatic class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
void
Expectsvoid
static void
sendHimChat
(String pid, String s) void
start
(jakarta.websocket.Session session) static <T> void
Methods handling important events during the game call this method to let watchers now about the most recent eventstatic void
tellHim
(String pid, WatchPlayer.Ready msg)
-
Constructor Details
-
WatchPlayer
public WatchPlayer()
-
-
Method Details
-
start
public void start(jakarta.websocket.Session session) -
end
public void end() -
incoming
ExpectsWATCH pid IAM pid CHAT text
-
onError
- Throws:
Throwable
-
tellAbout
Methods handling important events during the game call this method to let watchers now about the most recent event -
tellHim
-
sendHimChat
-