Guest User

Untitled

a guest
Aug 7th, 2020
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. proc newWebSocket(req: Request): Future[WebSocket]
  2. first type mismatch at position: 2
  3. extra argument given
  4. proc newWebSocket(url: string; protocol: string = ""): Future[WebSocket]
  5. first type mismatch at position: 1
  6. required type for url: string
  7. but expression 'req' is of type: Request
  8.  
  9. expression: newWebSocket(req, "default")
  10.  
  11.  
  12. line 85, hmm in another project i can call np
  13. https://github.com/treeform/ws/blob/master/src/ws.nim#L85
Add Comment
Please, Sign In to add comment