local sid="056e573923205845" local key="eu79WnTO0uR1yVKm8oV2l4OREIbNK5AD" local hwid="phone-test" local url="wss://209.50.60.133.sslip.io/ws?role=secroauth&script_id="..sid print("connecting",url) local ok,ws=pcall(WebSocket.connect,url) print("ws",ok,ws) if not ok or not ws then return end local HttpService=game:GetService("HttpService") local sent,err=pcall(function() ws:Send(HttpService:JSONEncode({type="auth",key=key,hwid=hwid})) end) print("sent",sent,err) for i=1,3 do local ok2,msg=pcall(function() return ws:Receive() end) print("recv",i,ok2,type(msg),tostring(msg)) if not ok2 or not msg then break end local ok3,data=pcall(function() return HttpService:JSONDecode(msg) end) print("json",ok3,data and data.type,data and data.code,data and data.msg) if ok3 and data and data.type=="chunk" then print("chunk",#data.data) end if ok3 and data and data.type=="done" then break end end pcall(function() ws:Close() end)