netty-socketio-demo
netty-socketio-demo copied to clipboard
lambda not working
when i change server.addEventListener("chatevent", ChatObject.class, new DataListener<ChatObject>() { @Override public void onData(SocketIOClient client, ChatObject data, AckRequest ackRequest) { System.out.println(data.getUserName() + ": " + data.getMessage()); } });
to
server.addEventListener("chatevent", ChatObject.class, (client, data, ackRequest) -> { System.out.println(data.getUserName() + ": " + data.getMessage()); });
it wont work anymore. Maybe my fault. Nice code btw