Minor grooming.
This commit is contained in:
parent
f2edaa5301
commit
b76701a275
@ -504,14 +504,14 @@ def websocket_switching_procedure (activefd : Int)
|
|||||||
serv = Context.context.fd_to_ipcclient[activefd]
|
serv = Context.context.fd_to_ipcclient[activefd]
|
||||||
message = serv.read
|
message = serv.read
|
||||||
|
|
||||||
if Context.context.is_json[fdclient]
|
buf = if Context.context.is_json[fdclient]
|
||||||
buf = message.to_json
|
message.to_json
|
||||||
print_message buf, activefd
|
|
||||||
else # We assume that non-JSON clients are CBOR clients.
|
else # We assume that non-JSON clients are CBOR clients.
|
||||||
buf = message.to_cbor
|
message.to_cbor
|
||||||
print_message buf, activefd
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
print_message buf, activefd
|
||||||
|
|
||||||
wsclient.send buf
|
wsclient.send buf
|
||||||
end
|
end
|
||||||
rescue e
|
rescue e
|
||||||
|
Loading…
Reference in New Issue
Block a user