Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

import socket.io in es module

import { Server } from 'socket.io';
import express from 'express';
import { createServer } from 'http';

const app = express(); 
const server = createServer(app); 
const socketio = new Server(server);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #es #module
ADD COMMENT
Topic
Name
8+5 =