Use a Uri parameter instead of a String in WebSocket.connect #49131
Labels
area-vm
Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends.
library-io
P3
A lower priority bug or feature request
triaged
Issue has been triaged by sub team
type-enhancement
A request for a change that isn't a bug
WebSocket.connect
takes the URL as aString
, and then immediately parses it. If the URL already exists as aUri
before calling the function, it must be converted to aString
and then parsed into aUri
again.This is unnecessary work. Wouldn't it make more sense to take a
Uri
parameter? This way, the caller can just parse a string manually if need be.The text was updated successfully, but these errors were encountered: