Replace sessionId check with SUBSCRIBE and UNSUBSCRIBE message type.