1
0
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:
Daniel Däschle
2020-08-22 12:29:15 +02:00
committed by GitHub
parent b5ca114a96
commit fcc61a981d
15 changed files with 266 additions and 135 deletions

View File

@ -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')
}
})