Aliases
WebSocketObject.close
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Closes the socket and stops its message pump.
socket:Close(): ()
WebSocketObject.closelocal ok, socket = pcall(WebSocket.connect, "ws://127.0.0.1:8765")
if not ok then warn(socket); return end
socket.OnClose:Connect(function(reason) print("Closed", reason) end)
socket:Close()
