What do you want to save?
Add Code snippet
New code examples
-
Other 2022-02-25 00:20:31
apache reverse websocket
<VirtualHost *:80> ServerName www.domain.com RewriteEngine On RewriteCond %{REQUEST_URI} ^/socket.io [NC] Rewrit... Add solution -
Other 2022-02-02 20:06:15
how to check whether the user is online or not using socket.io
const users = {}; io.on('connection', function(socket){ console.log('a user connected'); socket.on('login', function(data){ console.log('a user ' + data.userId + ' connected'); // saving userId to array with socket ID users[socket.id] = da... Add solution -
-
Javascript 2022-01-30 11:35:55
socket io react js
import React, { useState, useEffect } from "react"; import socketIOClient from "socket.io-client"; const ENDPOINT = "http://127.0.0.1:4001"; function App() { const [response, setResponse] = useState(""); useEf... Add solution