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

@@ -183,7 +183,7 @@ pub fn (mut ws Client) listen() ? {
if ws.state !in [.closing, .closed] {
// sending close back according to spec
ws.debug_log('close with reason, code: $code, reason: $reason')
r := if reason.len > 0 { string(reason, reason.len) } else { '' }
r := reason.bytestr()
ws.close(code, r)?
}
unsafe {