diff --git a/src/clientTest.ts b/src/clientTest.ts new file mode 100644 index 0000000..913549e --- /dev/null +++ b/src/clientTest.ts @@ -0,0 +1,17 @@ +import { io } from 'socket.io-client'; + +const main = async () => { + const socket = io('http://localhost:3000'); + + socket.on('connect', () => { + socket.emit('subscribe', 'SOL-PERP'); + }); + + socket.on('SOL-PERP', (data: any) => { + console.log(data); + }); +}; + +main().then(() => { + console.log('running'); +});