Class Client

Direct Known Subclasses:
RemoteServer, User

@Node public class Client extends VRObject
Basic client class, adds user-related properties and business logic to VRObject.
Author:
joe
  • Constructor Details

    • Client

      public Client()
    • Client

      public Client(Long id)
    • Client

      public Client(String name)
    • Client

      public Client(org.springframework.web.socket.handler.ConcurrentWebSocketSessionDecorator session)
  • Method Details

    • processEvent

      public void processEvent(VREvent event)
      Process an event received from other active objects, typically other users. This implementation serializes the event and sends it over websocket.
      Overrides:
      processEvent in class VRObject
      Parameters:
      event - Whatever has changed
    • sendMessage

      public void sendMessage(Object obj)
    • getToken

      public String getToken(String serviceId)
      Returns token for a given service
    • setToken

      public void setToken(String serviceId, String value)
      Set token for a given service
    • clearToken

      public String clearToken(String serviceId)
      Remove token for a given service
    • createScene

      public void createScene(WorldManager wm)
      Create client's scene, called by WorldManager during login process. Default client doesn't have a scene.