| 1 | module websocket |
| 2 | |
| 3 | // Uri represents an Uri for websocket connections |
| 4 | struct Uri { |
| 5 | mut: |
| 6 | url string // url to the websocket endpoint |
| 7 | hostname string // hostname of the websocket endpoint |
| 8 | port string // port of the websocket endpoint |
| 9 | resource string // resource of the websocket endpoint |
| 10 | querystring string // query string of the websocket endpoint |
| 11 | } |
| 12 | |
| 13 | // str returns the string representation of the Uri |
| 14 | pub fn (u Uri) str() string { |
| 15 | return u.url |
| 16 | } |
| 17 |