Skip to content

Commit e563732

Browse files
Update RPC.gml
1 parent a32f4d7 commit e563732

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/RPC/RPC.gml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function RPC(_socket) constructor {
5858
/// Sends an error with the specified code, message, and ID over the given socket.
5959
///
6060
/// @param {Real} code - Error code.
61-
/// @param {string} message - Error message.
61+
/// @param {String} message - Error message.
6262
/// @param {Real} id - ID associated with the error.
6363
/// @param {Function} socket - Socket to which the error will be sent.
6464
static sendError = function(_code, _message, _id, _socket) {
@@ -144,11 +144,10 @@ function RPC(_socket) constructor {
144144
}
145145
/// @function registerHandler()
146146
/// @description
147-
/// Registers a Remote Procedure Call (RPC) handler with the specified name and method.
148147
/// This function allows associating a method with a unique name for later invocation.
149148
///
150-
/// @param {String} name - The name associated with the RPC handler.
151-
/// @param {Function} method - The method to be registered as the RPC handler.
149+
/// @param {String} name - Name associated with the RPC handler.
150+
/// @param {Function} method - Method to be registered as the RPC handler.
152151
static registerHandler = function(_name, _method) {
153152
handlers[$ _name] = _method;
154153
}

0 commit comments

Comments
 (0)