title: Does the Hapi.js websocket protocol communication need to use hapi.js for the client to connect to the websocket?
body: <p>I am building an API using Hapi. I need WebSocket functionality and it seems that Nes is the most popular to be used with Hapi. This is fine since Nes makes things quite easy, for example, a test route might look as so...</p>
  
  <pre><code>// Register Nes.
  await server.register(Nes);
  ...
  ...
  // WebSocket route.
  server.route({
    method: 'GET',
    path: '/h',
    config: {
      id: 'hello',
      handler: (request, h) =&gt; {
        return 'world!';
      }
    }
  });
  </code></pre>
  
  <p>This is great, however, the documentation shows that the only way to make a request to this route using WebSockets is by using Nes on the client as well...</p>
  
  <pre><code>const Nes = require('nes');
  
  var client = new Nes.Client('ws://localhost');
  
  const start = async () =&gt; {
  
    await client.connect();
    const payload = await client.request('hello');  // Can also request '/h'
    // payload -&gt; 'world!'
  };
  
  start();
  </code></pre>
  
  <p>My issue is that the client does not use JavaScript. The Nes library does not exist at all. In that case, can I still use WebSockets to make a request to this route? There are no examples of this so I do not understand how I could do so. If it is not possible, then I would like to know what my options are as even Socket.io does not exist in the framework I am using (Flutter).</p>