Ask for an example of using scocket.io in VUE.JS.

recent applications use scocket.io
applications do not use vue-cli
use vue.js files directly.
can"t find a solution after searching for a long time

Mar.03,2021

insert

after your page body
<script src="https://cdn.socket.io/socket.io-1.0.0.js"></script>

then normal socketio usage,

var socket = io('http://localhost');
    socket.on('connect', function(){
    socket.on('event', function(data){});
    socket.on('disconnect', function(){});
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e462ad-44b6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e462ad-44b6e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?