mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
all: TypeSymbol.source_name (#6187)
This commit is contained in:
@ -58,7 +58,7 @@ fn start_client() ? {
|
||||
// use on_message_ref if you want to send any reference object
|
||||
ws.on_message(fn (mut ws websocket.Client, msg &websocket.Message) ? {
|
||||
if msg.payload.len > 0 {
|
||||
message := string(msg.payload, msg.payload.len)
|
||||
message := msg.payload.bytestr()
|
||||
println('client got type: $msg.opcode payload:\n$message')
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user