Fix client.post method invocation in createMessage

Fix to resolve #5