I did some experiments but no success yet. Maybe you could clarify some things:
- What do you mean by ‘module specific channel’? How does that work?
- I tried to emit an event via a java application, but I don’t know which parameters to use so that the event is passed to my module?
- Where is the code that processes incoming socket events?
I tried socket.io-java-client, but nothing happens on the server (log remains empty, module does not return anything):
public static void main(String[] args) throws Exception {
Socket socket = IO.socket("http://raspi:8080"); // I also tried: http://raspi:8080/socket-test-module
socket.connect();
socket.emit("notification", "ping");
socket.close();
}
Any ideas how to get a simple external socket client running?