FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
eBot-CSGO/websocket/websocket.exceptions.php at master · deStrO/eBot-CSGO · GitHub
deStrO
/
eBot-CSGO
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
138
Star
383
Code
Issues
3
Pull requests
7
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
eBot-CSGO
/
websocket
/
websocket.exceptions.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
53 lines (34 loc) · 1.27 KB
Breadcrumbs
eBot-CSGO
/
websocket
/
websocket.exceptions.php
Copy path
File metadata and controls
53 lines (34 loc) · 1.27 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
class
WebSocketMessageNotFinalised
extends
Exception {
public
function
__construct
(
IWebSocketMessage
$
msg
) {
parent
::
__construct
(
"
WebSocketMessage is not finalised!
"
);
}
}
class
WebSocketFrameSizeMismatch
extends
Exception {
public
function
__construct
(
IWebSocketFrame
$
msg
) {
parent
::
__construct
(
"
Frame size mismatches with the expected frame size. Maybe a buggy client.
"
);
}
}
class
WebSocketInvalidChallengeResponse
extends
Exception {
public
function
__construct
() {
parent
::
__construct
(
"
Server send an incorrect response to the clients challenge!
"
);
}
}
class
WebSocketInvalidUrlScheme
extends
Exception {
public
function
__construct
() {
parent
::
__construct
(
"
Only 'ws://' urls are supported!
"
);
}
}
class
WebSocketNotAuthorizedException
extends
Exception {
protected
$
user
;
public
function
__construct
(
IWebSocketUser
$
user
) {
parent
::
__construct
(
"
None or invalid credentials provided!
"
);
$
this
->
user
=
$
user
;
}
}
class
WebSocketInvalidKeyException
extends
Exception {
public
function
__construct
(
$
key1
,
$
key2
,
$
l8b
) {
parent
::
__construct
(
"
Client sent an invalid opening handshake!
"
);
fwrite
(
STDERR
,
"
Key 1:
\t
$
key1
\n
Key 2:
\t
$
key2
\n
L8b:
\t
$
l8b
"
);
}
}
Back
|
FazBrowse Home
|
New Git URL