WebSocket Tutorial 03 (encoders & decoders in a simple chatroom web app.)



WebSocket Tutorial 03 (encoders & decoders in a simple chatroom web app.)

WebSocket Tutorial 03 (encoders & decoders in a simple chatroom web app.)

00:05 create new web project w/ GlassFish 4 as the target runtime
00:25 create and go over various classes in this application and the html page default.html
02:00 start coding ChatMessage, ChatMessageEncoder, and ChatMessageDecoder classes
02:46 convert custom object to String message
03:40 convert String to custom object
04:16 start coding the ServerEndpoint class ChatServerEndpoint
04:30 define the encoders and decoders for ChatServerEndpoint
05:05 maintain Set of chatroom users in ChatServerEndpoint
05:35 connect to ChatServerEndpoint
06:25 disconnect from ChatServerEndpoint
07:00 process incoming messages to ChatServerEndpoint
10:22 finish coding ChatServerEncoder class
11:35 finish coding ChatMessageDecoder class
12:53 code html client page default.html
14:34 process incoming JSON message from ChatServerEndpoint
15:27 send JSON messages to ChatServerEndpoint
16:09 handle browser closing
16:49 test run completed application running on GlassFish 4 server

► get access to members-only video contents + support:
https://www.youtube.com/channel/UCUvwlMMaeppKPdtAK8PxO8Q/join
► website + download source code:
https://prototypeprj.com
https://ai.prototypeprj.com
https://crypto.prototypeprj.com
► download directly:
download ai source code @ https://sites.fastspring.com/prototypeprj/instant/ai
download crypto source code @ https://sites.fastspring.com/prototypeprj/instant/crypto
download source code (old) page # 2 @ https://sites.fastspring.com/prototypeprj/instant/2020
download source code (older) page # 1 @ https://sites.fastspring.com/prototypeprj/instant/all

Comments are closed.