Commit d8352478 authored by Chunchi Che's avatar Chunchi Che

succeed in connecting websocket

parent 1bd0090b
import React from "react";
import "./App.css";
import "./api/ygopro.ts";
import { io, Socket } from "socket.io-client";
function App() {
// test
const ws = new WebSocket("ws:/localhost:8000");
console.log("websocket connected!");
ws.onmessage = e => {
console.log("websocket recv: " + e.data);
};
return (
<div className="App">
<header className="App-header">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment