Package edu.wisc.game.websocket
Class WatchPlayer
java.lang.Object
edu.wisc.game.websocket.WatchPlayer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSee https://docs.oracle.com/javaee/7/tutorial/websocket007.htm or https://www.baeldung.com/java-websockets for documentation on encodersstatic enumMessages sent to a GUI client to tell it that something is ready for it, and it can make another /newEpisode or /display callstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidend()voidExpectsvoidstatic voidsendHimChat(String pid, String s) voidstart(jakarta.websocket.Session session) static <T> voidMethods handling important events during the game call this method to let watchers now about the most recent eventstatic voidtellHim(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
-