socketMachineClass.js 356 B

123456789101112131415161718192021222324
  1. import {index} from "@/utils/socket/index";
  2. export class SocketMachine extends index {
  3. constructor() {
  4. super(index)
  5. super.Close()
  6. super.send()
  7. this.keyName = 'socketRunning'
  8. }
  9. Close() {
  10. this.Close()
  11. }
  12. send(data, type) {
  13. if (type === 'socketRunning') {
  14. let querydata = {}
  15. this.send(querydata)
  16. }
  17. }
  18. }