ı could not connect what I did ```php $client = new Client(new Version2X('http://localhost:3000')); $client->initialize(); $client->emit('posts', ['age' => 28]); $client->close(); ``` js code ```js const index = require('http').createServer(); const options = { cors: { origin: '*', }, }; const io = require('socket.io')(index, options); index.listen(3000); io.on('connection', function (socket) { console.log('sockete birileri bağlandı.'); socket.on('posts', function (data) { io.emit('posts', data); }); socket.on('disconnect', function () { console.log('birileri geldi ve gitti.'); }); }); ```
ı could not connect what I did
js code