Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python-websockets/websockets
/ main.js
File
main.js
example/tutorial/step3/main.js:None–None ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
import
{ createBoard, playMove } from
"./connect4.js"
;
2
3
function
getWebSocketServer() {
4
if
(window.location.host ===
"python-websockets.github.io"
) {
Callers
nothing calls this directly
Calls
5
createBoard
Function · 0.90
getWebSocketServer
Function · 0.85
initGame
Function · 0.70
receiveMoves
Function · 0.70
sendMoves
Function · 0.70
Tested by
no test coverage detected