Skip to content
Ask || Server To Index
Profile icon
GatewayDuckYT

Ok So I want to send info from my server file to my index file (views/index.ejs) how do i do this btw i am useing socket.io allready

You are viewing a single comment. View All
Profile icon
GatewayDuckYT

@SixBeeps This Dont Work

index.ejs

socket.on('test', function(text) { alert(text) })

server.js

socket.emit('test', 'gamer')