code: public void receive(WSMessage message) {
          log.trace("receive message");
          if (isConnected()) {
              WebSocketPlugin plugin = (WebSocketPlugin) PluginRegistry.getPlugin("WebSocketPlugin");
              Optional<WebSocketScopeManager> optional = Optional.ofNullable((WebSocketScopeManager) session.getAttribute(Constants.MANAGER));
              WebSocketScopeManager manager = optional.isPresent() ? optional.get() : plugin.getManager(path);
              WebSocketScope scope = manager.getScope(path);
              scope.onMessage(message);
          } else {
              log.warn("Not connected");
          }
      }
docs: Receive data from a client.
  
  @param message