File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed
websocket/httpsession/src/main/webapp Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 4545<html >
4646 <head >
4747 <meta http-equiv =" Content-Type" content =" text/html; charset=UTF-8" >
48- <title >HttpSession in a WebSocket endpoint </title >
48+ <title >WebSocket : HttpSession </title >
4949
5050 </head >
5151 <body >
52- <h1 >HttpSession in a WebSocket endpoint </h1 >
52+ <h1 >WebSocket : HttpSession </h1 >
5353
5454 <div style =" text-align : center ;" >
5555 <form action =" " >
56- <h2 >Text Data</h2 >
57- <input onclick =" sayHello();" value =" Say Hello" type =" button" >
56+ <input onclick =" echoText();" value =" Echo Text" type =" button" >
5857 <input id =" myField" value =" WebSocket" type =" text" ><br >
5958 </form >
6059 </div >
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ websocket.onerror = function(evt) { onError(evt) };
4747
4848var output = document . getElementById ( "output" ) ;
4949
50- function sayHello ( ) {
51- console . log ( "sayHello : " + myField . value ) ;
50+ function echoText ( ) {
51+ console . log ( "echoText : " + myField . value ) ;
5252 websocket . send ( myField . value ) ;
5353 writeToScreen ( "SENT (text): " + myField . value ) ;
5454}
You can’t perform that action at this time.
0 commit comments