public class WebSocketServer extends Object
http://localhost:8080/websocketThe example differs from many of the other examples in Netty in that is does not have an acomponying client. Instead a html page is provided that interacts with this server.
netty/src/test/resources/websocketx/html5/websocket.htmlThe html page is very simple were you simply enter some text and the server will echo the same text back, but in uppercase. You, also see status messages in the "Response From Server" area when client has connected, disconnected etc.
Constructor and Description |
---|
WebSocketServer(int port) |
public void run()
public static void main(String[] args)
Copyright © 2008–2019 The Netty Project. All rights reserved.