<|start_filename|>App/Providers/AppServiceProvider.js<|end_filename|>
const ioc = require("expressweb-ioc");

class AppServiceProvider {
  /**
   * Register application services.
   */
  register() {
    return {
      //
    };
  }

  /**
   * Bootstrap any application services.
   *
   * @return void
   */
  boot() {
    //
  }
}

module.exports = AppServiceProvider;


<|start_filename|>App/Http/Controller/Ws/chatController.js<|end_filename|>
"use strict";
const WsBaseController = require("@WsBaseController");

class chatController extends WsBaseController {
  constructor(socket) {
    super(socket);
  }

  onMessage(data) {
    // same as: socket.on('message')
    console.log(data);
  }

  onClose() {
    // same as: socket.on('close')
  }

  onError() {
    // same as: socket.on('error')
  }
}

module.exports = chatController;


<|start_filename|>Routes/sockets.js<|end_filename|>
"use strict";

/*
|--------------------------------------------------------------------------
| socket.io
|--------------------------------------------------------------------------
|
| This file is used to register socket.io channels and start the Ws server.
|
*/

const Ws = require("@socket.io");

//Ws.channel("chat", "chatController");
