mirror of
https://github.com/defold/extension-websocket.git
synced 2025-06-27 01:47:42 +02:00
Merge pull request #21 from defold/issue-18-error-message-fix
Issue 18: Documentation fix
This commit is contained in:
commit
8a9dc759a4
@ -59,11 +59,7 @@
|
||||
|
||||
- name: message
|
||||
type: string
|
||||
desc: The received data. Only valid if event is `websocket.EVENT_MESSAGE`
|
||||
|
||||
- name: error
|
||||
type: string
|
||||
desc: The error string. Only valid if event is `websocket.EVENT_ERROR`
|
||||
desc: The received data if event is `websocket.EVENT_MESSAGE`. Error message otherwise
|
||||
|
||||
|
||||
returns:
|
||||
@ -83,7 +79,7 @@
|
||||
update_gui(self)
|
||||
log("Connected: " .. tostring(conn))
|
||||
elseif data.event == websocket.EVENT_ERROR then
|
||||
log("Error: '" .. data.error .. "'")
|
||||
log("Error: '" .. data.message .. "'")
|
||||
elseif data.event == websocket.EVENT_MESSAGE then
|
||||
log("Receiving: '" .. tostring(data.message) .. "'")
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user