Skip to content

Commit

Permalink
Generated new socket module (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
britzl authored May 30, 2022
1 parent 02d8ec1 commit f071413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nakama/socket.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ local function on_socket_message(socket, message)
end

local function socket_send(socket, message, callback)
if message.match_data and message.match_data.data then
message.match_data.data = b64.encode(message.match_data.data)
if message.match_data_send and message.match_data_send.data then
message.match_data_send.data = b64.encode(message.match_data_send.data)
end

if callback then
Expand Down Expand Up @@ -93,7 +93,7 @@ end
--
-- messages
--
--
--
--- channel_join
-- @param socket
-- @param target
Expand Down

0 comments on commit f071413

Please sign in to comment.