org.apache.tinkerpop.gremlin.driver.simple

## Class WebSocketClient

- java.lang.Object
- - org.apache.tinkerpop.gremlin.driver.simple.AbstractClient
  - - org.apache.tinkerpop.gremlin.driver.simple.WebSocketClient

- All Implemented Interfaces:
    Closeable, AutoCloseable, SimpleClient

      public class WebSocketClient
      extends AbstractClient

  A simple, non-thread safe Gremlin Server client using websockets. Typical use is for testing and demonstration.
  Author:
    Stephen Mallette (http://stephen.genoprime.com)

- - ### Field Summary

    - ### Fields inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient

      `callbackResponseHandler, group`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `WebSocketClient()`
    `WebSocketClient(URI uri)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `close()`
    `void` | `writeAndFlush(RequestMessage requestMessage)`

    - ### Methods inherited from class org.apache.tinkerpop.gremlin.driver.simple.AbstractClient

      `submit, submit, submitAsync`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface org.apache.tinkerpop.gremlin.driver.simple.SimpleClient

      `submit, submit, submitAsync`

- - ### Constructor Detail

    - #### WebSocketClient

          public WebSocketClient()

    - #### WebSocketClient

          public WebSocketClient(URI uri)

  - ### Method Detail

    - #### writeAndFlush

          public void writeAndFlush(RequestMessage requestMessage)
                             throws Exception

      Specified by:
        `writeAndFlush` in class `AbstractClient`
      Throws:
        `Exception`

    - #### close

          public void close()
                     throws IOException

      Throws:
        `IOException`

Copyright © 2013–2021 Apache Software Foundation. All rights reserved.