/** * Is called when the underlying connection received a message from the remote side. * @param message The received message */ void onMessage(WampMessage message) { if (currentState instanceof SessionEstablishedState) ((SessionEstablishedState)currentState).onMessage(message); else if (currentState instanceof HandshakingState) ((HandshakingState)currentState).onMessage(message); }
/** * Is called when the underlying connection received a message from the remote side. * @param message The received message */ void onMessage(WampMessage message) { if (currentState instanceof SessionEstablishedState) ((SessionEstablishedState)currentState).onMessage(message); else if (currentState instanceof HandshakingState) ((HandshakingState)currentState).onMessage(message); }